X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetBootMedium.py;h=8f6c49b7654037cf4e5d12210eeecbcd4a668ddf;hb=6571695f832db4ef942acb9c5d21bed6d4e34567;hp=4997478258a0e7eb5ef6dacdcd9a00f96d0c1976;hpb=02d525f6d1b8163f51fd3796e13a94f3f71defba;p=plcapi.git diff --git a/PLC/Methods/GetBootMedium.py b/PLC/Methods/GetBootMedium.py index 4997478..8f6c49b 100644 --- a/PLC/Methods/GetBootMedium.py +++ b/PLC/Methods/GetBootMedium.py @@ -241,21 +241,21 @@ class GetBootMedium(Method): type = "txt" # handle / caconicalize options - if type is "txt": + if type == "txt": if options: raise PLCInvalidArgument, "Options are not supported for node configs" else: # create a dict for build.sh optdict={} for option in options: - if option is "cramfs": + if option == "cramfs": optdict['cramfs']=True - elif option is 'partition': - if type is not "usb": + elif option == 'partition': + if type != "usb": raise PLCInvalidArgument, "option 'partition' is for USB images only" else: type="usb_partition" - elif option is "serial": + elif option == "serial": optdict['serial']='default' elif option.find("serial:") == 0: optdict['serial']=option.replace("serial:","")