format the code as CI required

This commit is contained in:
zhuzhih2017 2017-05-26 10:23:36 +08:00
parent 7b9f93c75f
commit 5e7e5a419d
1 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ func (s *stepAttachKeyPar) Run(state multistep.StateBag) multistep.StepAction {
InstanceIds: "[\"" + instance.InstanceId + "\"]"}) InstanceIds: "[\"" + instance.InstanceId + "\"]"})
if err != nil { if err != nil {
e, _ := err.(*common.Error) e, _ := err.(*common.Error)
if( (!(e.Code == "MissingParameter" || e.Code == "DependencyViolation.WindowsInstance" || e.Code == "InvalidKeyPairName.NotFound" || e.Code == "InvalidRegionId.NotFound"))&& retry_times>0){ if (!(e.Code == "MissingParameter" || e.Code == "DependencyViolation.WindowsInstance" || e.Code == "InvalidKeyPairName.NotFound" || e.Code == "InvalidRegionId.NotFound")) && retry_times > 0 {
retry_times = retry_times - 1 retry_times = retry_times - 1
continue continue
} }