X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetBootMedium.py;h=142185d239088bfb9e47019af84f82d2c9238e56;hb=801d1c69ef9f19c5f2e439e261407d4d28892884;hp=7449e4f1be09e2097c4b06677b72b6e17f1ebfa5;hpb=3f5cfa865d7b3649445fbb9af290901bf65fd4fc;p=plcapi.git diff --git a/PLC/Methods/GetBootMedium.py b/PLC/Methods/GetBootMedium.py index 7449e4f..142185d 100644 --- a/PLC/Methods/GetBootMedium.py +++ b/PLC/Methods/GetBootMedium.py @@ -354,9 +354,9 @@ class GetBootMedium(Method): if filedir: if not os.path.exists(filedir): try: - os.makedirs (dirname,0777) + os.makedirs (filedir,0777) except: - raise PLCPermissionDenied, "Could not create dir %s"%dirname + raise PLCPermissionDenied, "Could not create dir %s"%filedir ### generic media