Revision 5b460366
b/lib/cmdlib.py | ||
---|---|---|
3137 | 3137 |
_OP_REQP = ["output_fields", "names", "use_locking"] |
3138 | 3138 |
REQ_BGL = False |
3139 | 3139 |
_FIELDS_STATIC = utils.FieldSet(*["name", "os", "pnode", "snodes", |
3140 |
"admin_state", "admin_ram",
|
|
3140 |
"admin_state", |
|
3141 | 3141 |
"disk_template", "ip", "mac", "bridge", |
3142 | 3142 |
"sda_size", "sdb_size", "vcpus", "tags", |
3143 | 3143 |
"network_port", "beparams", |
b/lib/hypervisor/hv_xen.py | ||
---|---|---|
527 | 527 |
constants.HT_HVM_VALID_DISK_TYPES)) |
528 | 528 |
# vnc_bind_address verification |
529 | 529 |
vnc_bind_address = hvparams[constants.HV_VNC_BIND_ADDRESS] |
530 |
if vnc_bind_address is not None:
|
|
530 |
if vnc_bind_address: |
|
531 | 531 |
if not utils.IsValidIP(vnc_bind_address): |
532 | 532 |
raise errors.OpPrereqError("given VNC bind address '%s' doesn't look" |
533 | 533 |
" like a valid IP address" % |
Also available in: Unified diff