Browse Source

correction script

develop
Emmanuel Garette 4 months ago
parent
commit
ea297f5abb
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      creole/funcs/keepalived.py
  2. 1
    1
      dicos/19_keepalived.xml

+ 2
- 2
creole/funcs/keepalived.py View File

@@ -1,3 +1,3 @@
1 1
 def element_in_list(index, *args):
2
-    if index is not None and index <= len(args):
3
-        return args[index]
2
+    if index is not None and int(index) < len(args):
3
+        return args[int(index)]

+ 1
- 1
dicos/19_keepalived.xml View File

@@ -54,7 +54,7 @@
54 54
             <param>['MASTER','BACKUP']</param>
55 55
         </check>
56 56
         <check name='valid_enum' target='kVRRPInterface'>
57
-            <param>['0', '1', '2', '3','4']</param>
57
+            <param>['0', '1', '2', '3', '4']</param>
58 58
         </check>
59 59
         <group master='keepVRRPInstance'>
60 60
            <slave>keepVRRPRouterID</slave>

Loading…
Cancel
Save