summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Synacek <jsynacek@redhat.com>2014-04-25 12:34:22 +0200
committerJan Synacek <jsynacek@redhat.com>2014-04-25 12:34:22 +0200
commit3afe24c6f29c5322b82adf0389ff11ce6ddb3469 (patch)
treec635a63e8f1faaee3b14d5bb66f8de15270692a5
parentab96a6cf650ef72b10f356da09da05d8fd89f7e8 (diff)
downloadopenlmi-scripts-3afe24c6f29c5322b82adf0389ff11ce6ddb3469.tar.gz
openlmi-scripts-3afe24c6f29c5322b82adf0389ff11ce6ddb3469.tar.xz
openlmi-scripts-3afe24c6f29c5322b82adf0389ff11ce6ddb3469.zip
logicalfile: log when running in verbose mode
-rw-r--r--commands/logicalfile/lmi/scripts/logicalfile/logicalfile.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/logicalfile/lmi/scripts/logicalfile/logicalfile.py b/commands/logicalfile/lmi/scripts/logicalfile/logicalfile.py
index a3c60aa..0f83ec0 100644
--- a/commands/logicalfile/lmi/scripts/logicalfile/logicalfile.py
+++ b/commands/logicalfile/lmi/scripts/logicalfile/logicalfile.py
@@ -159,6 +159,8 @@ def lf_createdir(ns, directory):
directory = directory.rstrip('/')
ns.LMI_UnixDirectory.create_instance(get_directory_name_properties(ns, directory))
+ LOG().info("Successfully created directory: %s", directory)
+
def lf_deletedir(ns, directory):
"""
Delete a directory.
@@ -172,6 +174,8 @@ def lf_deletedir(ns, directory):
directory = directory.rstrip('/')
get_directory_instance(ns, directory).delete()
+ LOG().info("Successfully deleted directory: %s", directory)
+
def lf_show(ns, target):
"""
Show detailed information about the target.