Skip to content
Snippets Groups Projects
Commit 61a50e79 authored by velandy's avatar velandy Committed by Gerrit Code Review
Browse files

Merge "Add additional configuration check"

parents d8577f5d c1ec5715
No related branches found
Tags v3.0.0rc13
No related merge requests found
......@@ -23,11 +23,20 @@ import charms.sshproxy
cfg = config()
@when_not('pingpong.configured')
def not_configured():
"""Check the current configuration.
Check the current values in config to see if we have enough
information to continue."""
config_changed()
@when('config.changed', 'sshproxy.configured')
def config_changed():
"""Verify the configuration.
Verify that the charm has been configured
"""
status_set('maintenance', 'Verifying configuration data...')
(validated, output) = charms.sshproxy.verify_ssh_credentials()
if not validated:
status_set('blocked', 'Unable to verify SSH credentials: {}'.format(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment