Revision d1547283 lib/config.py
b/lib/config.py | ||
---|---|---|
2303 | 2303 |
return self._config_data.HasAnyDiskOfType(dev_type) |
2304 | 2304 |
|
2305 | 2305 |
@locking.ssynchronized(_config_lock) |
2306 |
def Update(self, target, feedback_fn): |
|
2306 |
def Update(self, target, feedback_fn, ec_id=None):
|
|
2307 | 2307 |
"""Notify function to be called after updates. |
2308 | 2308 |
|
2309 | 2309 |
This function must be called when an object (as returned by |
... | ... | |
2350 | 2350 |
if isinstance(target, objects.Instance): |
2351 | 2351 |
self._UnlockedReleaseDRBDMinors(target.name) |
2352 | 2352 |
|
2353 |
if ec_id is not None: |
|
2354 |
# Commit all ips reserved by OpInstanceSetParams and OpGroupSetParams |
|
2355 |
self._UnlockedCommitTemporaryIps(ec_id) |
|
2356 |
|
|
2353 | 2357 |
self._WriteConfig(feedback_fn=feedback_fn) |
2354 | 2358 |
|
2355 | 2359 |
@locking.ssynchronized(_config_lock) |
Also available in: Unified diff