Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2015 20:17:28 +0000 (UTC)
From:      Jimmy Olgeni <olgeni@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r378891 - in head/sysutils/ansible: . files
Message-ID:  <201502122017.t1CKHScl079336@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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])



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502122017.t1CKHScl079336>