Revision dfc2a24c lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
5258 | 5258 |
|
5259 | 5259 |
if instance.disk_template == constants.DT_FILE: |
5260 | 5260 |
file_storage_dir = os.path.dirname(instance.disks[0].logical_id[1]) |
5261 |
if target_node is node:
|
|
5262 |
tgt = instance.primary_node
|
|
5261 |
if target_node: |
|
5262 |
tgt = target_node
|
|
5263 | 5263 |
else: |
5264 |
tgt = instance.target_node
|
|
5264 |
tgt = instance.primary_node
|
|
5265 | 5265 |
result = lu.rpc.call_file_storage_dir_remove(tgt, file_storage_dir) |
5266 | 5266 |
if result.fail_msg: |
5267 | 5267 |
lu.LogWarning("Could not remove directory '%s' on node %s: %s", |
Also available in: Unified diff