Files
xen/tools/libxl
Chunyan Liu ef8cf0d490 fix list_domain_details: check config data length=0
If domain is created through virsh, then in xl, one could see it
with 'xl list', but with 'xl list --long domU', it reports:
"Domain name must be specified."
The reason is xl config data does not exist but it still tries
to parse_config_data in current code.

Improve list_domain_details:
If len of config data is 0, just pass, do not go forward to
parse_config_data, otherwise, it will meet error like
"Domain name not specified" and exit. This error is not expected,
since if code enters list_domain_details, domain name validness
is already checked and domain does exist.

Length of config data is 0 may means: config data does not exist due
to some reason, like: domain is created by libvirt, or in destroying
domain process config data is cleared but domain fails to clean up.
No matter in which case, list_domain_details could just show empty
info, but not error like "Domain name not specified".

Signed-off-by: Chunyan Liu <cyliu@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
2014-07-24 16:23:19 +01:00
..
2013-10-10 15:48:55 +01:00
2011-04-04 14:54:46 +01:00
2012-10-05 14:34:30 +01:00
2014-07-10 13:06:55 +01:00
2014-06-18 17:19:25 +01:00
2014-06-18 17:19:25 +01:00
2012-08-24 12:38:16 +01:00
2014-05-02 17:50:23 +01:00
2014-05-02 17:50:23 +01:00
2013-10-10 15:48:55 +01:00
2011-10-12 16:21:32 +01:00
2014-03-21 14:35:52 +00:00