Add rg_name parameter to the arguments of the DecortController.rg_find method call in library/decort_k8s.py

rc-5.3.0^2
Dmitriy Smirnov 9 months ago
parent eb542fa46c
commit 4c4be07550

@ -102,8 +102,11 @@ class decort_k8s(DecortController):
self.amodule.fail_json(**self.result) self.amodule.fail_json(**self.result)
# fail the module -> exit # fail the module -> exit
# now validate RG # now validate RG
validated_rg_id, validated_rg_facts = self.rg_find(validated_acc_id, validated_rg_id, validated_rg_facts = self.rg_find(
arg_amodule.params['rg_id'],) arg_account_id=validated_acc_id,
arg_rg_id=arg_amodule.params['rg_id'],
arg_rg_name=arg_amodule.params['rg_name']
)
if not validated_rg_id: if not validated_rg_id:
self.result['failed'] = True self.result['failed'] = True
self.result['changed'] = False self.result['changed'] = False

Loading…
Cancel
Save