fix parameters string
This commit is contained in:
parent
252644cf8f
commit
d4257ea870
1 changed files with 4 additions and 1 deletions
|
@ -39,7 +39,10 @@ class Terraform:
|
||||||
def _gen_param_string(self, kargs):
|
def _gen_param_string(self, kargs):
|
||||||
params = []
|
params = []
|
||||||
for key, value in kargs.items():
|
for key, value in kargs.items():
|
||||||
params += ['%s=%s' % (key, value)]
|
if not value:
|
||||||
|
params += ['-%s=%s' % (key, value)]
|
||||||
|
else:
|
||||||
|
params += ['-%s' % key]
|
||||||
return params
|
return params
|
||||||
|
|
||||||
def _run_cmd(self, cmd):
|
def _run_cmd(self, cmd):
|
||||||
|
|
Loading…
Reference in a new issue