Skip to content

Commit

Permalink
Merge branch 'master' into mandatorysecretkey
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkukral authored Jan 11, 2018
2 parents 0a5e72e + 4f23e2e commit 435d482
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- stage: test
install:
- pip install -e ".[test]"
- pip check
script:
- python3 -m flake8
- stage: test
Expand Down
3 changes: 1 addition & 2 deletions kqueen/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import uuid
import yaml

config_file = 'config/test.py'
config = current_config()
fake = Faker()

Expand Down Expand Up @@ -56,7 +55,7 @@ def cluster():
'id': _uuid,
'name': 'Name for cluster {}'.format(_uuid),
'provisioner': prov,
'state': 'deployed',
'state': config.get('CLUSTER_UNKNOWN_STATE'),
'kubeconfig': yaml.load(open('kubeconfig_localhost', 'r').read()),
'created_at': datetime.datetime(2017, 11, 15, 13, 36, 24),
'owner': _user
Expand Down
3 changes: 3 additions & 0 deletions kqueen/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ def get_state(self):
return self.state
self.state = cluster['state']
self.save()
else:
self.state = config.get('CLUSTER_UNKNOWN_STATE')
self.save()

return self.state

Expand Down

0 comments on commit 435d482

Please sign in to comment.