fix(deploy): no dangling symlink on first-deploy failure, deadline-capped health poll, release pruning, honest commit rc
This commit is contained in:
@@ -79,7 +79,10 @@ def restore(name):
|
||||
if rc != 0:
|
||||
return {'ok': False, 'restored': restored,
|
||||
'error': 'import failed'}
|
||||
run_cmd(['uci', 'commit', cfg])
|
||||
crc, _, cerr = run_cmd(['uci', 'commit', cfg])
|
||||
if crc != 0:
|
||||
return {'ok': False, 'restored': restored,
|
||||
'error': 'commit failed: %s' % (cerr or cfg)}
|
||||
restored.append(cfg)
|
||||
return {'ok': True, 'restored': restored}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user