From 8b8c4aa4733ed06f0e50cb3b36a093ff89a7d0cf Mon Sep 17 00:00:00 2001 From: Chandler Wilkerson Date: Thu, 21 Feb 2019 14:21:00 -0600 Subject: [PATCH] Exempt register vars from shell expansion (#52594) --- lib/ansible/modules/packaging/os/redhat_subscription.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/os/redhat_subscription.py b/lib/ansible/modules/packaging/os/redhat_subscription.py index 514c3f088da..aa41bde915b 100644 --- a/lib/ansible/modules/packaging/os/redhat_subscription.py +++ b/lib/ansible/modules/packaging/os/redhat_subscription.py @@ -378,7 +378,7 @@ class Rhsm(RegistrationBase): if release: args.extend(['--release', release]) - rc, stderr, stdout = self.module.run_command(args, check_rc=True) + rc, stderr, stdout = self.module.run_command(args, check_rc=True, expand_user_and_vars=False) def unsubscribe(self, serials=None): '''