svn commit: r378891 - in head/sysutils/ansible: . files

Jimmy Olgeni olgeni at FreeBSD.org
Thu Feb 12 20:17:29 UTC 2015


Author: olgeni
Date: Thu Feb 12 20:17:28 2015
New Revision: 378891
URL: https://svnweb.freebsd.org/changeset/ports/378891
QAT: https://qat.redports.org/buildarchive/r378891/

Log:
  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

Added:
  head/sysutils/ansible/files/patch-lib_ansible_modules_extras_messaging_rabbitmq__user.py   (contents, props changed)
Modified:
  head/sysutils/ansible/Makefile

Modified: head/sysutils/ansible/Makefile
==============================================================================
--- head/sysutils/ansible/Makefile	Thu Feb 12 20:00:17 2015	(r378890)
+++ head/sysutils/ansible/Makefile	Thu Feb 12 20:17:28 2015	(r378891)
@@ -3,7 +3,7 @@
 
 PORTNAME=	ansible
 PORTVERSION=	1.8.2
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	sysutils python
 MASTER_SITES=	http://releases.ansible.com/ansible/
 

Added: head/sysutils/ansible/files/patch-lib_ansible_modules_extras_messaging_rabbitmq__user.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/ansible/files/patch-lib_ansible_modules_extras_messaging_rabbitmq__user.py	Thu Feb 12 20:17:28 2015	(r378891)
@@ -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])


More information about the svn-ports-all mailing list