Fix if-condition for rg_name parameter check

This commit is contained in:
2024-06-02 22:18:58 +03:00
parent d7a32376db
commit eb0766b15f

View File

@@ -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)