diff options
Diffstat (limited to 'src/com.gluster.storage.management.gateway/WebContent/scripts/Utils.py')
-rw-r--r-- | src/com.gluster.storage.management.gateway/WebContent/scripts/Utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com.gluster.storage.management.gateway/WebContent/scripts/Utils.py b/src/com.gluster.storage.management.gateway/WebContent/scripts/Utils.py index 82f8b7b6..bcc6f177 100644 --- a/src/com.gluster.storage.management.gateway/WebContent/scripts/Utils.py +++ b/src/com.gluster.storage.management.gateway/WebContent/scripts/Utils.py @@ -1059,6 +1059,8 @@ def log(priority, message=None): def stripEmptyLines(content): + if not content: + return "" ret = "" for line in content.split("\n"): if line.strip() != "": |