X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=conf_files.py;h=da4c313e8e56013d769c550ad4aeeb2435d8c592;hb=188be188d60d2999bd4577d686c60a0e7f2b27f8;hp=7b0cadae0ae1927ccffda1c5e66c23481bf9b8af;hpb=643d1341e12c27bff66bb760194bd7d72622aae3;p=nodemanager.git diff --git a/conf_files.py b/conf_files.py index 7b0cada..da4c313 100644 --- a/conf_files.py +++ b/conf_files.py @@ -7,7 +7,6 @@ try: from hashlib import sha1 as sha except ImportError: from sha import sha -import string import curlwrapper import logger @@ -41,7 +40,7 @@ class conf_files: if not cf_rec['enabled']: return dest = cf_rec['dest'] err_cmd = cf_rec['error_cmd'] - mode = string.atoi(cf_rec['file_permissions'], base=8) + mode = int(cf_rec['file_permissions'], base=8) try: uid = pwd.getpwnam(cf_rec['file_owner'])[2] except: