mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
output image_id, server_id in stdout to ease automation
Signed-off-by: Marco Mariani <marco.mariani@alterway.fr>
This commit is contained in:
parent
d4a91982ab
commit
5b96d96a7a
@ -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)
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user