git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cosmetic changes in sendmail.py - please the linter
[plcapi.git]
/
PLC
/
BootStates.py
diff --git
a/PLC/BootStates.py
b/PLC/BootStates.py
index
11cd3b7
..
d58bb93
100644
(file)
--- a/
PLC/BootStates.py
+++ b/
PLC/BootStates.py
@@
-25,12
+25,12
@@
class BootState(Row):
def validate_boot_state(self, name):
# Make sure name is not blank
if not len(name):
def validate_boot_state(self, name):
# Make sure name is not blank
if not len(name):
- raise PLCInvalidArgument
, "Boot state must be specified"
+ raise PLCInvalidArgument
("Boot state must be specified")
- # Make sure boot state does not alredy exist
+ # Make sure boot state does not alre
a
dy exist
conflicts = BootStates(self.api, [name])
if conflicts:
conflicts = BootStates(self.api, [name])
if conflicts:
- raise PLCInvalidArgument
, "Boot state name already in use"
+ raise PLCInvalidArgument
("Boot state name already in use")
return name
return name