Revision 2e04d454 lib/config.py
b/lib/config.py | ||
---|---|---|
1175 | 1175 |
"""Set the instance's status to a given value. |
1176 | 1176 |
|
1177 | 1177 |
""" |
1178 |
assert isinstance(status, bool), \
|
|
1178 |
assert status in constants.ADMINST_ALL, \
|
|
1179 | 1179 |
"Invalid status '%s' passed to SetInstanceStatus" % (status,) |
1180 | 1180 |
|
1181 | 1181 |
if instance_name not in self._config_data.instances: |
... | ... | |
1242 | 1242 |
"""Mark the status of an instance to down in the configuration. |
1243 | 1243 |
|
1244 | 1244 |
""" |
1245 |
self._SetInstanceStatus(instance_name, False)
|
|
1245 |
self._SetInstanceStatus(instance_name, constants.ADMINST_DOWN)
|
|
1246 | 1246 |
|
1247 | 1247 |
def _UnlockedGetInstanceList(self): |
1248 | 1248 |
"""Get the list of instances. |
Also available in: Unified diff