Revision ff7ba389 lib/config.py
b/lib/config.py | ||
---|---|---|
2312 | 2312 |
return self._config_data.HasAnyDiskOfType(dev_type) |
2313 | 2313 |
|
2314 | 2314 |
@locking.ssynchronized(_config_lock) |
2315 |
def Update(self, target, feedback_fn): |
|
2315 |
def Update(self, target, feedback_fn, ec_id=None):
|
|
2316 | 2316 |
"""Notify function to be called after updates. |
2317 | 2317 |
|
2318 | 2318 |
This function must be called when an object (as returned by |
... | ... | |
2359 | 2359 |
if isinstance(target, objects.Instance): |
2360 | 2360 |
self._UnlockedReleaseDRBDMinors(target.name) |
2361 | 2361 |
|
2362 |
if ec_id is not None: |
|
2363 |
# Commit all ips reserved by OpInstanceSetParams and OpGroupSetParams |
|
2364 |
self._UnlockedCommitTemporaryIps(ec_id) |
|
2365 |
|
|
2362 | 2366 |
self._WriteConfig(feedback_fn=feedback_fn) |
2363 | 2367 |
|
2364 | 2368 |
@locking.ssynchronized(_config_lock) |
Also available in: Unified diff