Hides a perviously exported struct. Shortens a line that was too long.

This commit is contained in:
Renan DelValle 2019-06-28 10:21:51 -07:00
parent cbac86cb20
commit 125025157b
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
5 changed files with 19 additions and 16 deletions

View file

@ -164,13 +164,16 @@ func createJob(cmd *cobra.Command, args []string) {
if err := client.CreateJob(auroraJob); err != nil {
log.Fatal("unable to create Aurora job: ", err)
} else {
if ok, monitorErr := client.InstancesMonitor(auroraJob.JobKey(), auroraJob.GetInstanceCount(), 5, 50); !ok || monitorErr != nil {
if err := client.KillJob(auroraJob.JobKey()); err != nil {
log.Fatal(monitorErr, err)
}
log.Fatal(monitorErr)
}
if ok, monitorErr := client.InstancesMonitor(auroraJob.JobKey(),
auroraJob.GetInstanceCount(),
5,
50); !ok || monitorErr != nil {
if err := client.KillJob(auroraJob.JobKey()); err != nil {
log.Fatal(monitorErr, err)
}
log.Fatal(monitorErr)
}
}