Skip to content

Commit

Permalink
fix(provider/openstack): Use directUrl property for image location
Browse files Browse the repository at this point in the history
It's a workaround for issue in Openstack4j library, locations cannot be
used without fix ContainX/openstack4j#1096

Spinnaker issue: spinnaker/spinnaker#3018
  • Loading branch information
posox committed Aug 27, 2018
1 parent fa5168b commit b95fa82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class OpenstackImageV2Provider implements OpenstackImageProvider, OpenstackReque
.id(image.id)
.status(image.status?.value())
.size(image.size)
.location(image.locations?.get(0)?.toString())
.location(image.directUrl)
.createdAt(image.createdAt?.time)
.updatedAt(image.updatedAt?.time)
.properties(properties)
Expand Down

0 comments on commit b95fa82

Please sign in to comment.