diff --git a/library/decort_rg.py b/library/decort_rg.py index 0ebce2f..78260e6 100644 --- a/library/decort_rg.py +++ b/library/decort_rg.py @@ -226,7 +226,7 @@ class decort_rg(DecortController): self.result['failed'] = True self.result['msg'] = ("Current user does not have access to the requested account " "or non-existent account specified.") - self.fail_json(**self.result) + self.amodule.fail_json(**self.result) if amodule.params['rg_id'] > 0: self.validated_rg_id = amodule.params['rg_id']