Skip to content

Instantly share code, notes, and snippets.

@twisty7867
twisty7867 / highstate.py.patch
Created May 4, 2015 17:36
Patch for highstate.py to elimnate output errors
diff --git a/salt/output/highstate.py b/salt/output/highstate.py
index 833c1c8..d6cdc09 100644
--- a/salt/output/highstate.py
+++ b/salt/output/highstate.py
@@ -149,7 +149,7 @@ def _format_host(host, data):
if ret['result'] is None:
hcolor = colors['YELLOW']
tcolor = colors['YELLOW']
- comps = tname.split('_|-')
+ comps = [salt.utils.sdecode(x) for x in tname.split('_|-')]
@twisty7867
twisty7867 / Vagrantfile
Created April 7, 2015 23:11
Get rid of "stdin is not a tty" message once and for all.
config.vm.provision :shell do |s|
s.privileged = false
s.inline = "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile"
end