diff options
Diffstat (limited to 'commands/storage/lmi/scripts/storage/fs.py')
-rw-r--r-- | commands/storage/lmi/scripts/storage/fs.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/commands/storage/lmi/scripts/storage/fs.py b/commands/storage/lmi/scripts/storage/fs.py index 0dd2ee0..7a6ee5b 100644 --- a/commands/storage/lmi/scripts/storage/fs.py +++ b/commands/storage/lmi/scripts/storage/fs.py @@ -199,6 +199,10 @@ def create_fs(ns, devices, fs, label=None): values = service.LMI_CreateFileSystem.LMI_CreateFileSystemValues raise LmiFailed("Cannot format the device %s: %s." % (devs[0].Name, values.value_name(ret))) + + devnames = [device.Name for device in devs] + LOG().info("Created %s on %s", fs, "+".join(devnames)) + return outparams['TheElement'] def delete_format(ns, fmt): @@ -222,6 +226,8 @@ def delete_format(ns, fmt): raise LmiFailed("Cannot delete the format: %s." % (values.value_name(ret))) + LOG().info("Deleted data on %s", fmt.ElementName) + def get_format_label(_ns, fmt): """ Return short text description of the format, ready for printing. |