Revision 2584d4a4 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
538 | 538 |
raise errors.OpPrereqError("Invalid mac prefix given '%s'" % |
539 | 539 |
self.op.mac_prefix) |
540 | 540 |
|
541 |
if self.op.hypervisor_type not in hypervisor.VALID_HTYPES:
|
|
541 |
if self.op.hypervisor_type not in constants.HYPER_TYPES:
|
|
542 | 542 |
raise errors.OpPrereqError("Invalid hypervisor type given '%s'" % |
543 | 543 |
self.op.hypervisor_type) |
544 | 544 |
|
Also available in: Unified diff