summaryrefslogtreecommitdiffstats
path: root/src/com.gluster.storage.management.gateway.scripts
diff options
context:
space:
mode:
authorShireesh Anjal <anjalshireesh@gmail.com>2011-08-15 04:00:03 -0700
committerShireesh Anjal <anjalshireesh@gmail.com>2011-08-15 04:00:03 -0700
commit24626d10f27ba77056e26554686e2a2fc1d3c6a7 (patch)
treebed1a07e24908dd6ddaa38d3609e1234874e4304 /src/com.gluster.storage.management.gateway.scripts
parentd6af18cc4a6c046a0416dadc1f697b19fb113c54 (diff)
parente57be03497f99545af1621e3c491a75c5d868e6d (diff)
Merge pull request #230 from TimothyAsir/master
Bug 3402 - [AMI] Creation of volume with CIFS support enabled errors out though it starts volume
Diffstat (limited to 'src/com.gluster.storage.management.gateway.scripts')
-rw-r--r--src/com.gluster.storage.management.gateway.scripts/src/common/Utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com.gluster.storage.management.gateway.scripts/src/common/Utils.py b/src/com.gluster.storage.management.gateway.scripts/src/common/Utils.py
index 588d52fa..a090eb42 100644
--- a/src/com.gluster.storage.management.gateway.scripts/src/common/Utils.py
+++ b/src/com.gluster.storage.management.gateway.scripts/src/common/Utils.py
@@ -399,7 +399,7 @@ def _getCpuStatList():
fp.close()
return map(float, line.split()[1:5])
except IOError, e:
- Utils.log("Failed to open /proc/stat: %s" % str(e))
+ log("Failed to open /proc/stat: %s" % str(e))
return None
def getCpuUsageAvg():
@@ -1091,7 +1091,7 @@ def getCifsUserUid(userName):
content = fp.read()
fp.close()
except IOError, e:
- Utils.log("failed to read file %s: %s" % (Globals.CIFS_USER_FILE, str(e)))
+ log("failed to read file %s: %s" % (Globals.CIFS_USER_FILE, str(e)))
return False
for line in content.strip().split():