As the purpose of the MP is to implement assess_status() we need to make sure it runs after every hook.
Currently in glance_relations.py set_os_workload_status is called which will clobber any paused status. This should be replaced with a call to asssess_status() and as Liam points out assess_status should ultimately call set_os_workload_status.
if __name__ == '__main__':
try: hooks.execute(sys.argv)
except UnregisteredHookError as e: juju_log('Unknown hook {} - skipping.'.format(e))
set_os_workload_status(CONFIGS, REQUIRED_INTERFACES, charm_func=check_optional_relations)
As the purpose of the MP is to implement assess_status() we need to make sure it runs after every hook.
Currently in glance_relations.py set_os_ workload_ status is called which will clobber any paused status. This should be replaced with a call to asssess_status() and as Liam points out assess_status should ultimately call set_os_ workload_ status.
if __name__ == '__main__':
hooks. execute( sys.argv) kError as e:
juju_log( 'Unknown hook {} - skipping. '.format( e)) os_workload_ status( CONFIGS, REQUIRED_ INTERFACES,
charm_ func=check_ optional_ relations)
try:
except UnregisteredHoo
set_