Fix if-condition for rg_name parameter check

rc-5.3.0^2
Dmitriy Smirnov 8 months ago
parent d7a32376db
commit eb0766b15f

@ -75,7 +75,7 @@ class decort_lb(DecortController):
elif arg_amodule.params['account_id'] or arg_amodule.params['account_name'] != "": elif arg_amodule.params['account_id'] or arg_amodule.params['account_name'] != "":
if arg_amodule.params['rg_name']: if not arg_amodule.params['rg_name']:
self.result['failed'] = True self.result['failed'] = True
self.result['msg'] = ("RG name must be specified with account present") self.result['msg'] = ("RG name must be specified with account present")
self.amodule.fail_json(**self.result) self.amodule.fail_json(**self.result)

Loading…
Cancel
Save