mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
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:
commit
9ebcd04989
@ -121,5 +121,6 @@ func createOpenStackImage(filePath string, imageName string, provider *gopherclo
|
|||||||
log.Fatalf("Error uploading image, status is %s", validImage.Status)
|
log.Fatalf("Error uploading image, status is %s", validImage.Status)
|
||||||
} else {
|
} else {
|
||||||
log.Infof("Image uploaded successfully!")
|
log.Infof("Image uploaded successfully!")
|
||||||
|
fmt.Println(image.ID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -108,6 +108,7 @@ func runOpenStack(args []string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
servers.WaitForStatus(client, server.ID, "ACTIVE", 600)
|
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