X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FInstallBootstrapFS.py;h=06f9807d4ab0af1648b85c7ad4aa4a53a4eb6ef0;hb=1e11592251ab599965bb7dc88b631d14e9be1a60;hp=e43d8247dc2bc87247d8365e715e2f5f6def6fc0;hpb=dc8926ef97d1058c3dcfaad5f1628e2984297e4e;p=bootmanager.git diff --git a/source/steps/InstallBootstrapFS.py b/source/steps/InstallBootstrapFS.py index e43d824..06f9807 100644 --- a/source/steps/InstallBootstrapFS.py +++ b/source/steps/InstallBootstrapFS.py @@ -65,7 +65,7 @@ def Run(vars, log): val = PARTITIONS["root"] val = PARTITIONS["swap"] val = PARTITIONS["vservers"] - except KeyError, part: + except KeyError as part: log.write("Missing partition in PARTITIONS: {}\n".format(part)) return 0 @@ -142,8 +142,8 @@ def Run(vars, log): # Download SHA1 checksum file log.write("downloading sha1sum for {}\n".format(source_file)) result = bs_request.DownloadFile(source_hash_file, None, None, - 1, 1, dest_hash_file, - 30, 14400) + 1, 1, dest_hash_file, + 30, 14400) log.write("verifying sha1sum for {}\n".format(source_file)) if not utils.check_file_hash(dest_file, dest_hash_file):