Pass ignore-running: true when refreshing ourself
Otherwise the refresh awareness blocks refresh when you are connected via SSH.
This commit is contained in:
parent
cecca212f6
commit
a9520b7100
|
@ -215,7 +215,7 @@ class RefreshController(SubiquityController):
|
||||||
async def start_update(self, context):
|
async def start_update(self, context):
|
||||||
change = await self.app.snapd.post(
|
change = await self.app.snapd.post(
|
||||||
'v2/snaps/{}'.format(self.snap_name),
|
'v2/snaps/{}'.format(self.snap_name),
|
||||||
{'action': 'refresh'})
|
{'action': 'refresh', 'ignore-running': True})
|
||||||
context.description = "change id: {}".format(change)
|
context.description = "change id: {}".format(change)
|
||||||
return change
|
return change
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue