search for: datajson

Displaying 3 results from an estimated 3 matches for "datajson".

Did you mean: damason
2015 Aug 21
2
Bug#763102: xen-utils-common: xen-init-list fails to parse xm output -> cannot shutdown domains with service xendomains
Control: tag -1 +moreinfo Hello, It seems this was incorrectly closed as xend only since this code can be used on upgrade (as part of rebooting from xend into a new system). I don't have any systems to test but I think the fix is trivially the following: @@ -51,7 +51,7 @@ class DataJSON(Data): class DataSXP(Data): def __init__(self, p): - s = SXPParser()(p) + s = SXPParser.loads(p) self.data = d = {} for i in s: if i and i[0] == 'domain': Please can you try making that change to /usr/lib/xen-common/bin/xen -init-list an...
2016 Mar 13
1
Bug#818129: xen-utils-common: error parsing domU config file with /usr/lib/xen-common/bin/xen-init-name
...9; key in JSON output of the command above. The following patch fixes this error. Please apply. Thank you very much, LH --- /tmp/xen-init-name.orig 2016-03-14 00:31:40.812230921 +0100 +++ /usr/lib/xen-common/bin/xen-init-name 2016-03-14 00:31:51.776943095 +0100 @@ -39,7 +39,7 @@ class DataJSON(Data): def __init__(self, p): s = json.loads(p) - self.name = s['config']['c_info']['name'] + self.name = s['c_info']['name'] -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'u...
2015 Jan 22
5
Ubuntu delta against 4.5.0-1 in experimental for disussion
...;.") + if userdata_userid == "xl": + domid_list.append(domid) + + if __name__ == '__main__': - p = subprocess.check_output(('xen', 'list', '-l')) - if p[0] == '(': - d = DataSXP(p) - else: - d = DataJSON(p) - d(sys.stdout) + domid_list = [] + + os.path.walk("/var/lib/xen", UserdataWalker, domid_list) + for domid in domid_list: + p = subprocess.check_output(('xen', 'list', '-l', domid)) + if p[0] == '(': + d = DataSXP(p)...