Fix if-condition for rg_name parameter check
This commit is contained in:
@@ -75,7 +75,7 @@ class decort_lb(DecortController):
|
||||
|
||||
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['msg'] = ("RG name must be specified with account present")
|
||||
self.amodule.fail_json(**self.result)
|
||||
|
||||
Reference in New Issue
Block a user