Add remaining server actions, except create image.
Create image action, to leave the user's account in the same state as it was
before, requires we use the Images API to delete the created image. I do not
yet have those tests started, but when I write them, I'll add the create image
test at that time.
diff --git a/openstack/compute/images/images.go b/openstack/compute/images/images.go
index cc08589..c881092 100644
--- a/openstack/compute/images/images.go
+++ b/openstack/compute/images/images.go
@@ -44,3 +44,9 @@
}
return images, nil
}
+
+func GetImage(ir ImageResults) (Image, error) {
+ image := Image{}
+ err := mapstructure.Decode(ir, &image)
+ return image, err
+}