aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gaffney <agaffney@gentoo.org>2005-10-15 16:52:52 +0000
committerAndrew Gaffney <agaffney@gentoo.org>2005-10-15 16:52:52 +0000
commit11d54b6fbe4177f358e3b8974aa62702efd1375a (patch)
treed056c7ca5f95a74d5975a1774bdde41f057a2b62 /src/GLIUtility.py
parentupdated webgli with preliminary Network Mounts support. (diff)
downloadgli-11d54b6fbe4177f358e3b8974aa62702efd1375a.tar.gz
gli-11d54b6fbe4177f358e3b8974aa62702efd1375a.tar.bz2
gli-11d54b6fbe4177f358e3b8974aa62702efd1375a.zip
fix indentation issues
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/gli/trunk@962 f8877401-5920-0410-a79b-8e2d7e04ca0d
Diffstat (limited to 'src/GLIUtility.py')
-rw-r--r--src/GLIUtility.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GLIUtility.py b/src/GLIUtility.py
index 0456350..cf10ec8 100644
--- a/src/GLIUtility.py
+++ b/src/GLIUtility.py
@@ -76,7 +76,7 @@ def format_mac(mac):
# trim_ip('192.168.01.002') => '192.168.1.2'
# @param ip IP address to be trimmed
def trim_ip(ip):
- # Remove leading zero's on the first octet
+ # Remove leading zero's on the first octet
ip = re.sub('^0{1,2}','',ip)
# Remove leading zero's from the other octets
@@ -567,7 +567,7 @@ def get_value_from_config(filename, value):
# @param password the password to be hashed
def hash_password(password):
salt = "$1$"
- chars = "./abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
+ chars = "./abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
for i in range(0, 8):
salt += chars[random.randint(0, len(chars)-1)]
salt += "$"