Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cloudstackops/xenserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def get_poolmaster(self, host):
def get_patch_level(self, host):
try:
with settings(host_string=self.ssh_user + "@" + host.ipaddress):
return fab.run("for p in $(xe patch-list | grep XS | awk {'print $4'} | tr -d \" \" |\
return fab.run("for p in $(xe patch-list | grep XS.*E | awk {'print $4'} | tr -d \" \" |\
sort | tr '\n' ' '); do echo -n $p \"(\"; xe patch-list name-label=$p params=hosts |\
awk -F: {'print $2'} | tr -cd , | awk {'print $1 \",\"'} | tr -d '\n' | wc -c | tr -d '\n'; echo -n \") \"; done")
except:
Expand Down