From 38c742ccf3a916a64d26be012e500620555a7fec Mon Sep 17 00:00:00 2001 From: Simon Dodsley Date: Mon, 11 Mar 2019 20:04:25 -0400 Subject: [PATCH] Fix typos in purefa_pgsnap module (#53643) --- lib/ansible/modules/storage/purestorage/purefa_pgsnap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/storage/purestorage/purefa_pgsnap.py b/lib/ansible/modules/storage/purestorage/purefa_pgsnap.py index 22817fda0f..12a39045cc 100644 --- a/lib/ansible/modules/storage/purestorage/purefa_pgsnap.py +++ b/lib/ansible/modules/storage/purestorage/purefa_pgsnap.py @@ -225,10 +225,10 @@ def main(): array = get_system(module) pgroup = get_pgroup(module, array) if pgroup is None: - module.fail_json(msg="Protection Group {0} does not exist".format(module.params('pgroup'))) + module.fail_json(msg="Protection Group {0} does not exist".format(module.params['name'])) pgsnap = get_pgsnapshot(module, array) if pgsnap is None: - module.fail_json(msg="Selected volume {0} does not exist in the Protection Group".format(module.params('name'))) + module.fail_json(msg="Selected volume {0} does not exist in the Protection Group".format(module.params['name'])) if ":" in module.params['name']: rvolume = get_rpgsnapshot(module, array) else: