@hook('upgrade-charm')
def reset_states_for_delivery():
    'An upgrade charm event was triggered by Juju, react to that here.'
    migrate_from_pre_snaps()
    install_snaps()
    set_state('reconfigure.authentication.setup')
    remove_state('authentication.setup')
An upgrade charm event was triggered by Juju, react to that here.
@hook('upgrade-charm')
def reset_states_for_delivery():
    
    migrate_from_pre_snaps()
    install_snaps()
    set_state('reconfigure.authentication.setup')
    remove_state('authentication.setup')