From e3db8ad25f3822b754a3431334731b2d3f8f273b Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Fri, 30 Nov 2012 15:15:49 -0800 Subject: [PATCH] Fix jeepyb: protect pygithub requirement. Change-Id: I6b4db1dc08342018cae6203cbecbee69956c5918 Reviewed-on: https://review.openstack.org/17261 Reviewed-by: Monty Taylor Approved: Clark Boylan Reviewed-by: Clark Boylan Tested-by: Jenkins --- modules/github/manifests/init.pp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/github/manifests/init.pp b/modules/github/manifests/init.pp index 845a9c5aac..7c2dabe45a 100644 --- a/modules/github/manifests/init.pp +++ b/modules/github/manifests/init.pp @@ -10,10 +10,12 @@ class github( include jeepyb include pip - package { 'PyGithub': - ensure => latest, # okay to use latest for pip - provider => pip, - require => Class['pip'], + if ! defined(Package['Pygithub']) { + package { 'PyGithub': + ensure => latest, # okay to use latest for pip + provider => pip, + require => Class['pip'], + } } # A lot of things need yaml, be conservative requiring this package to avoid