Revision 57de31c0 lib/config.py
b/lib/config.py | ||
---|---|---|
1193 | 1193 |
"""Mark the instance status to up in the config. |
1194 | 1194 |
|
1195 | 1195 |
""" |
1196 |
self._SetInstanceStatus(instance_name, True) |
|
1196 |
self._SetInstanceStatus(instance_name, constants.ADMINST_UP) |
|
1197 |
|
|
1198 |
@locking.ssynchronized(_config_lock) |
|
1199 |
def MarkInstanceOffline(self, instance_name): |
|
1200 |
"""Mark the instance status to down in the config. |
|
1201 |
|
|
1202 |
""" |
|
1203 |
self._SetInstanceStatus(instance_name, constants.ADMINST_OFFLINE) |
|
1197 | 1204 |
|
1198 | 1205 |
@locking.ssynchronized(_config_lock) |
1199 | 1206 |
def RemoveInstance(self, instance_name): |
Also available in: Unified diff