Skip to content

Commit

Permalink
issue #20 check for DRIVER in [iaas] section
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed May 27, 2014
1 parent 84dcf83 commit 992fe45
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions conpaas-director/cpscheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import re
import sys
import ConfigParser
from urlparse import urlparse

from cpsdirector import x509cert, common
Expand All @@ -18,3 +19,9 @@
else:
print >> sys.stderr, "OK: The hostname part of DIRECTOR_URL (%s) matches the cname found in %s/cert.pem (%s)" % (
director_hostname, common.config_parser.get('conpaas', 'CERT_DIR'), cname)

try:
driver = common.config_parser.get('iaas', 'DRIVER')
except ConfigParser.Error:
print >> sys.stderr, "no DRIVER specified in [iaas] section"

0 comments on commit 992fe45

Please sign in to comment.