Skip to content

Commit

Permalink
Merge branch 'develop' into win_pepper_cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
gtmanfred authored Mar 6, 2019
2 parents dbab9da + 4cf0f94 commit 7c45f40
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pepper/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def login(self, api):
logger.error('Login token expired')
raise Exception('Login token expired')
except Exception as e:
if e.args[0] is not 2:
if e.args[0] != 2:
logger.error('Unable to load login token from {0} {1}'.format(token_file, str(e)))
if os.path.isfile(token_file):
os.remove(token_file)
Expand Down
4 changes: 3 additions & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ pytest-rerunfailures
pytest-cov
git+git://github.com/saltstack/pytest-salt@master#egg=pytest-salt
tornado<5.0.0
salt
salt<2019.2.0
CherryPy
setuptools_scm
pyzmq>=2.2.0,<17.1.0; python_version == '3.4' # pyzmq 17.1.0 stopped building wheels for python3.4
pyzmq>=2.2.0; python_version != '3.4'
4 changes: 2 additions & 2 deletions tests/unit/test_login_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ def test_interactive_logins():
MagicMock(return_value='pepper')
):
result = pepper.cli.PepperCli().get_login_details()
assert result['SALTAPI_USER'] is 'pepper'
assert result['SALTAPI_PASS'] is 'pepper'
assert result['SALTAPI_USER'] == 'pepper'
assert result['SALTAPI_PASS'] == 'pepper'

0 comments on commit 7c45f40

Please sign in to comment.