Added variables to destroy command (#37028)

This commit is contained in:
Mikhail Naletov 2018-03-05 23:09:03 +02:00 committed by Ryan Brown
parent 1bc860fafd
commit 51558f12f4

View file

@ -257,6 +257,8 @@ def main():
if state == 'absent': if state == 'absent':
# deleting cannot use a statefile # deleting cannot use a statefile
needs_application = True needs_application = True
# add variables settings to destroy command
command.extend(variables_args)
elif plan_file and os.path.exists(plan_file): elif plan_file and os.path.exists(plan_file):
command.append(plan_file) command.append(plan_file)
elif plan_file and not os.path.exists(plan_file): elif plan_file and not os.path.exists(plan_file):