Fix issues with enable become plugin (#52657)

* Work around become_user not being set
pull/52688/head
Nathaniel Case 6 years ago committed by GitHub
parent 67f14772b1
commit 1b9745722e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -291,7 +291,8 @@ class ActionBase(with_metaclass(ABCMeta, object)):
# we need to return become_unprivileged as True # we need to return become_unprivileged as True
admin_users = self._get_admin_users() admin_users = self._get_admin_users()
remote_user = self._get_remote_user() remote_user = self._get_remote_user()
return bool(self.get_become_option('become_user') not in admin_users + [remote_user]) become_user = self.get_become_option('become_user')
return bool(become_user and become_user not in admin_users + [remote_user])
def _make_tmp_path(self, remote_user=None): def _make_tmp_path(self, remote_user=None):
''' '''

Loading…
Cancel
Save