Skip to content

Commit b276d9b

Browse files
committed
Merge pull request #19 from fborn/fix_patch_list
Fix the listing of the patches
2 parents b6e1423 + d0a001d commit b276d9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloudstackops/xenserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def get_poolmaster(self, host):
113113
def get_patch_level(self, host):
114114
try:
115115
with settings(host_string=self.ssh_user + "@" + host.ipaddress):
116-
return fab.run("for p in $(xe patch-list | grep XS | awk {'print $4'} | tr -d \" \" |\
116+
return fab.run("for p in $(xe patch-list | grep XS.*E | awk {'print $4'} | tr -d \" \" |\
117117
sort | tr '\n' ' '); do echo -n $p \"(\"; xe patch-list name-label=$p params=hosts |\
118118
awk -F: {'print $2'} | tr -cd , | awk {'print $1 \",\"'} | tr -d '\n' | wc -c | tr -d '\n'; echo -n \") \"; done")
119119
except:

0 commit comments

Comments
 (0)