Merge pull request #7118 from wizurijyq/patch-1
Make sure sshkey is not nil
This commit is contained in:
commit
fd988e67a6
|
@ -43,6 +43,10 @@ func (s *stepCreateServer) Run(ctx context.Context, state multistep.StateBag) mu
|
|||
state.Put("error", fmt.Errorf("Error fetching SSH key: %s", err))
|
||||
return multistep.ActionHalt
|
||||
}
|
||||
if sshKey == nil {
|
||||
state.Put("error", fmt.Errorf("Could not find key: %s", k))
|
||||
return multistep.ActionHalt
|
||||
}
|
||||
sshKeys = append(sshKeys, sshKey)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue