diff options
Diffstat (limited to 'cobbler/api.py')
-rw-r--r-- | cobbler/api.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cobbler/api.py b/cobbler/api.py index d520cc9..bd597b2 100644 --- a/cobbler/api.py +++ b/cobbler/api.py @@ -53,7 +53,8 @@ class BootAPI: result = cmd.communicate()[0].replace("cobbler-","") if result.find("not installed") != -1: return "?" - return result[:result.rfind(".")] + tokens = result[:result.rfind("-")].split(".") + return int(tokens[0]) + 0.1 * int(tokens[1]) + 0.001 * int(tokens[2]) def clear(self): |