Merge pull request #2640 from Wolphin-project/image-server-id

Output image_id, server_id in stdout to ease automation
This commit is contained in:
Justin Cormack 2017-10-25 18:17:41 +02:00 committed by GitHub
commit 9ebcd04989
2 changed files with 3 additions and 1 deletions

View File

@ -121,5 +121,6 @@ func createOpenStackImage(filePath string, imageName string, provider *gopherclo
log.Fatalf("Error uploading image, status is %s", validImage.Status)
} else {
log.Infof("Image uploaded successfully!")
fmt.Println(image.ID)
}
}

View File

@ -108,6 +108,7 @@ func runOpenStack(args []string) {
}
servers.WaitForStatus(client, server.ID, "ACTIVE", 600)
fmt.Printf("Server created, UUID is %s", server.ID)
log.Info("Server created, UUID is %s", server.ID)
fmt.Println(server.ID)
}