You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: pepperboard/core/__init__.py
+30-30
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
#!/usr/bin/env python
1
+
#!/usr/bin/env python3
2
2
# -*- coding:utf-8 -*-
3
3
4
4
importgetopt
@@ -13,15 +13,15 @@
13
13
14
14
15
15
defusage():
16
-
print"USAGE: "+sys.argv[0] +" [OPTIONS]"
17
-
print"Pepperboard : neat and simple salt dashboards"
18
-
print"--help|-h : Prints an awesome help message"
19
-
print"--output=|-o : comma separated values of files to write dashboards given with the \"-d\" argument"
20
-
print"--dashboards=|-d : comma separated values of dashboards"
21
-
print"--threads=|-t : comma separated values of threads count to be used (must be greater than 0). Prefix the number by \"f\" if you want more threads than CPU core count"
22
-
print"--grains=|-g : comma separated values of grains to be used with the mgrains dashboard. This argument implies \"-d 'mgrains'\""
23
-
print"--dellapikey=|-a : Dell API key used by the dellwarranty dashboard. This argument implies \"-d 'mgrains'\""
24
-
print"--list|-l : List available dashboards"
16
+
print("USAGE: "+sys.argv[0] +" [OPTIONS]")
17
+
print("Pepperboard : neat and simple salt dashboards")
18
+
print("--help|-h : Prints an awesome help message")
19
+
print("--output=|-o : comma separated values of files to write dashboards given with the \"-d\" argument")
20
+
print("--dashboards=|-d : comma separated values of dashboards")
21
+
print("--threads=|-t : comma separated values of threads count to be used (must be greater than 0). Prefix the number by \"f\" if you want more threads than CPU core count")
22
+
print("--grains=|-g : comma separated values of grains to be used with the mgrains dashboard. This argument implies \"-d 'mgrains'\"")
23
+
print("--dellapikey=|-a : Dell API key used by the dellwarranty dashboard. This argument implies \"-d 'mgrains'\"")
24
+
print("--list|-l : List available dashboards")
25
25
26
26
27
27
defgetmasterstatus():
@@ -44,25 +44,25 @@ def countminions():
44
44
45
45
defpepper_main():
46
46
ifgetmasterstatus() ==1:
47
-
print"Error : Your Salt Master isn't running. Exiting..."
47
+
print("Error : Your Salt Master isn't running. Exiting...")
48
48
usage()
49
49
sys.exit(2)
50
50
51
51
ifcountminions() ==0:
52
-
print"Error : You don't have any minions registered to the Salt Master. Exiting..."
52
+
print("Error : You don't have any minions registered to the Salt Master. Exiting...")
0 commit comments