From 992fe456bee5504682bbb91095a0cc40593ff8e7 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 27 May 2014 12:06:49 +0200 Subject: [PATCH] issue #20 check for DRIVER in [iaas] section --- conpaas-director/cpscheck.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/conpaas-director/cpscheck.py b/conpaas-director/cpscheck.py index 21084904..96702911 100644 --- a/conpaas-director/cpscheck.py +++ b/conpaas-director/cpscheck.py @@ -2,6 +2,7 @@ import re import sys +import ConfigParser from urlparse import urlparse from cpsdirector import x509cert, common @@ -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" +