Skip to content

Commit

Permalink
Fix rw permission failure not detected issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xumia committed Jan 16, 2022
1 parent 2296820 commit eeb6671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tacacs/test_ro_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def ssh_remote_allow_run(localhost, remote_ip, username, password, cmd):
res = ssh_remote_run(localhost, remote_ip, username, password, cmd)
# Verify that the command is allowed
logger.info("check command \"{}\" rc={}".format(cmd, res['rc']))
expected = res['rc'] == 0 or (res['rc'] != 0 and "Make sure your account has RW permission to current device" not in res['stderr'])
expected = "Make sure your account has RW permission to current device" not in res['stderr']
if not expected:
logger.error("error output=\"{}\"".format(res["stderr"]))
return expected
Expand Down

0 comments on commit eeb6671

Please sign in to comment.