Skip to content

Commit 4a36190

Browse files
jipanyangjleveque
authored andcommitted
Fix the systax eror with if statement (sonic-net#283)
":" was missing, also all other places are checking against 0 instead of "" Signed-off-by: Jipan Yang <[email protected]>
1 parent f1017ab commit 4a36190

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

consutil/main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
import click
1010
import re
1111
import subprocess
12-
except ImportError as e:
12+
except ImportError as e:
1313
raise ImportError("%s - required module not found" % str(e))
1414

1515
@click.group()
1616
def consutil():
1717
"""consutil - Command-line utility for interacting with switchs via console device"""
1818

19-
if os.geteuid() != ""
19+
if os.geteuid() != 0:
2020
print "Root privileges are required for this operation"
2121
sys.exit(1)
2222

0 commit comments

Comments
 (0)