Skip to content

Commit

Permalink
Fix the systax eror with if statement (sonic-net#283)
Browse files Browse the repository at this point in the history
":" was missing, also all other places are checking against 0 instead of ""

Signed-off-by: Jipan Yang <[email protected]>
  • Loading branch information
jipanyang authored and jleveque committed Jul 16, 2018
1 parent f1017ab commit 4a36190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consutil/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
import click
import re
import subprocess
except ImportError as e:
except ImportError as e:
raise ImportError("%s - required module not found" % str(e))

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

if os.geteuid() != ""
if os.geteuid() != 0:
print "Root privileges are required for this operation"
sys.exit(1)

Expand Down

0 comments on commit 4a36190

Please sign in to comment.