Minimal OpenShift fixes (#255)
* notify user when no tfvars file is used * add comment for additionalTrustBundle in configuration template
This commit is contained in:
parent
7f840bc08c
commit
f53aba9bba
|
@ -37,3 +37,5 @@ publish: Internal
|
|||
pullSecret: ""
|
||||
sshKey: |
|
||||
xxx
|
||||
|
||||
# additionalTrustBundle: |
|
||||
|
|
|
@ -56,6 +56,8 @@ def _parse_tfvars(tfvars=None, tfdir=None):
|
|||
if tfvars:
|
||||
with open(os.path.join(tfdir, tfvars)) as f:
|
||||
result.update(hcl.load(f))
|
||||
else:
|
||||
logging.info('no tfvars file used')
|
||||
except (KeyError, ValueError) as e:
|
||||
raise Error(f'Wrong variable files syntax: {e}')
|
||||
except (IOError, OSError) as e:
|
||||
|
|
Loading…
Reference in New Issue