You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So then we try to get the id of undef. And never reach the check.
my ($snapshot_id, $ssh_key_id) = Future->wait_all(
$self->_get_snapshot,
$self->_get_ssh_key,
)->then(
sub (@futures) {
Future->done(map { $_->get->{id} } @futures)
}
)->get;
My thought is if we get a value back, it will have an id. We should put the check in the then that what we got back was defined and then get the id. I'm not sure what that looks like though.
The text was updated successfully, but these errors were encountered:
That crashes at that line if i can't find the snapshot. LOG | error with box listener on inabox: Can't use an undefined value as a HASH reference at lib/Synergy/Reactor/InABox.pm line 131.
This is running master with a small diff to the regex to force i failure to find a snapshot.
User requests 'box create' and gets back
Console output:
Code path enters the else branch then returns undef.
So then we try to get the id of undef. And never reach the check.
My thought is if we get a value back, it will have an id. We should put the check in the
then
that what we got back was defined and then get the id. I'm not sure what that looks like though.The text was updated successfully, but these errors were encountered: