diff options
| -rw-r--r-- | nova/virt/fake.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nova/virt/fake.py b/nova/virt/fake.py index 49f7b548b..3b5a7e288 100644 --- a/nova/virt/fake.py +++ b/nova/virt/fake.py @@ -363,16 +363,20 @@ class FakeDriver(driver.ComputeDriver): def host_power_action(self, host, action): """Reboots, shuts down or powers up the host.""" - pass + return action def host_maintenance_mode(self, host, mode): """Start/Stop host maintenance window. On start, it triggers guest VMs evacuation.""" - pass + if not mode: + return 'off_maintenance' + return 'on_maintenance' def set_host_enabled(self, host, enabled): """Sets the specified host's ability to accept new instances.""" - pass + if enabled: + return 'enabled' + return 'disabled' def get_disk_available_least(self): """ """ |
