status_set,
)
from charms.reactive import (
- remove_state as remove_flag,
- set_state as set_flag,
+ clear_flag,
+ set_flag,
when,
when_not,
)
except:
action_fail('command failed:' + err)
else:
- action_set({'outout': result})
+ action_set({'output': result})
finally:
- remove_flag('actions.touch')
+ clear_flag('actions.touch')