aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/ansible/files
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2015-02-13 04:17:28 +0800
committerolgeni <olgeni@FreeBSD.org>2015-02-13 04:17:28 +0800
commit21b07d3aad91f0afdca01f075c5ae9c34e514b61 (patch)
treea11052986059c0397cbbe495e4081c89c2a8d485 /sysutils/ansible/files
parentaade6214df3b0268295ff38146e59f59f4a48d09 (diff)
downloadfreebsd-ports-gnome-21b07d3aad91f0afdca01f075c5ae9c34e514b61.tar.gz
freebsd-ports-gnome-21b07d3aad91f0afdca01f075c5ae9c34e514b61.tar.zst
freebsd-ports-gnome-21b07d3aad91f0afdca01f075c5ae9c34e514b61.zip
Fix issue #83 of ansible-modules-extras with pull request #204 ("Even
though the password param is specified as optional, the rabbitmq_user module fails when it is not provided.") PR: 197573 Submitted by: olgeni Reviewed by: maintainer
Diffstat (limited to 'sysutils/ansible/files')
-rw-r--r--sysutils/ansible/files/patch-lib_ansible_modules_extras_messaging_rabbitmq__user.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/sysutils/ansible/files/patch-lib_ansible_modules_extras_messaging_rabbitmq__user.py b/sysutils/ansible/files/patch-lib_ansible_modules_extras_messaging_rabbitmq__user.py
new file mode 100644
index 000000000000..7c5ead97d244
--- /dev/null
+++ b/sysutils/ansible/files/patch-lib_ansible_modules_extras_messaging_rabbitmq__user.py
@@ -0,0 +1,18 @@
+
+$FreeBSD$
+
+--- lib/ansible/modules/extras/messaging/rabbitmq_user.py.orig
++++ lib/ansible/modules/extras/messaging/rabbitmq_user.py
+@@ -162,7 +162,11 @@
+ return dict()
+
+ def add(self):
+- self._exec(['add_user', self.username, self.password])
++ if self.password is not None:
++ self._exec(['add_user', self.username, self.password])
++ else:
++ self._exec(['add_user', self.username, ''])
++ self._exec(['clear_password', self.username])
+
+ def delete(self):
+ self._exec(['delete_user', self.username])