Hashar has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/94880


Change subject: rake validate was failling on non tty
......................................................................

rake validate was failling on non tty

When running out of a tty, the console_color() would not be defined :-/

Change-Id: I6fc6e8511a6c888ac00bdbab7006a538deb67f49
---
M rakefile
1 file changed, 7 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/80/94880/1

diff --git a/rakefile b/rakefile
index 476b0c4..fe36d84 100644
--- a/rakefile
+++ b/rakefile
@@ -38,10 +38,13 @@
                $enable_color=true
        rescue LoadError
                puts "Cant load puppet/util/colors .. no color for you!"
-               # define our own colorization method that simply output the 
message
-               def console_color( level, message )
-                       return message
-               end
+       end
+end
+
+unless respond_to? :console_color
+       # define our own colorization method that simply output the message
+       def console_color( level, message )
+               return message
        end
 end
 

-- 
To view, visit https://gerrit.wikimedia.org/r/94880
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6fc6e8511a6c888ac00bdbab7006a538deb67f49
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hashar <has...@free.fr>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to