tools: xend: fix wrong condition check for xml file
PATCH 1/1 tools: xend: fix wrong condition check for xml file
Hi Konrad,
Would you please review below fix?
Thanks,
Joe
In commit e8d40584, it intended to check xml file size and when empty will return, the condition should be "if os.path.getsize(xml_path) == 0" rather then "if not os.path.getsize(xml_path) == 0".
--- tools/python/xen/xend/XendStateStore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/python/xen/xend/XendStateStore.py +1 -1
@@ -101,7 +101,7 @@ class XendStateStore: if not os.path.exists(xml_path): return {} - if not os.path.getsize(xml_path) == 0: + if os.path.getsize(xml_path) == 0: return {} dom = minidom.parse(xml_path)
Signature · 1 line
1.7.11.7
Quoted 3 lines · Joe Jin
Hi Konrad,
Would you please review below fix?
Quoted 30 lines
Thanks,
JoeIn commit
e8d40584, it intended to check xml file size and when empty will return, the condition should be "ifos.path.getsize(xml_path)== 0" rather then "if notos.path.getsize(xml_path)== 0".Signed-off-by Chuang Cao <[email protected]>Signed-off-by Joe Jin <[email protected]>--- tools/python/xen/xend/XendStateStore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/python/xen/xend/XendStateStore.py +1
-1@@ -101,7 +101,7 @@ class XendStateStore: if not os.path.exists(xml_path): return {} - if not os.path.getsize(xml_path) == 0: + if os.path.getsize(xml_path) == 0: return {} dom = minidom.parse(xml_path)Signature · 1 line
1.7.11.7
Ian Campbell
AppliedQuoted 6 lines · Konrad Rzeszutek Wilk
Quoted 3 lines · Joe Jin
Hi Konrad,
Would you please review below fix?
Reviewed-by Konrad Rzeszutek Wilk <[email protected]>
Applied, thanks.
Quoted 35 lines
Quoted 30 lines
Thanks,
JoeIn commit
e8d40584, it intended to check xml file size and when empty will return, the condition should be "ifos.path.getsize(xml_path)== 0" rather then "if notos.path.getsize(xml_path)== 0".Signed-off-by Chuang Cao <[email protected]>Signed-off-by Joe Jin <[email protected]>--- tools/python/xen/xend/XendStateStore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/python/xen/xend/XendStateStore.py +1
-1@@ -101,7 +101,7 @@ class XendStateStore: if not os.path.exists(xml_path): return {} - if not os.path.getsize(xml_path) == 0: + if os.path.getsize(xml_path) == 0: return {} dom = minidom.parse(xml_path)Signature · 1 line
1.7.11.7_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel