should defer when we cannot connect to device

This commit is contained in:
Oliver Gorwits
2017-09-29 08:01:06 +01:00
parent 10b5f6cbc4
commit a155d9cb77

View File

@@ -48,7 +48,7 @@ register 'register_worker' => sub {
} }
# per-device action but no device creds available # per-device action but no device creds available
return Status->error('skipped with no device creds') return Status->defer('skipped with no device creds')
if ref $job->device and 0 == scalar @newuserconf; if ref $job->device and 0 == scalar @newuserconf;
# back up and restore device_auth # back up and restore device_auth