Commit Graph

8 Commits

Author SHA1 Message Date
Joe Topjian
b2f9a3a6fd provider/openstack: Detect Region for Importing Resources (#10509)
* provider/openstack: Detect Region for Importing Resources

This commit changes the way the OpenStack region is detected and set.
Any time a region is required, the region attribute will first be
checked. Next, the OS_REGION_NAME environment variable will be checked.
While schema.EnvDefaultFunc handles this same situation, it is not
applicable when importing resources.

* provider/openstack: No longer ignore region in importing tests

* provider/openstack: Network and Subnet Import Fixes

This commit fixes the OpenStack Network and Subnet resources so that
importing of those resources is successful.
2016-12-04 14:24:07 +00:00
Joe Topjian
9ffef951c5 provider/openstack: gophercloud migration: objectstorage 2016-10-23 02:38:21 +00:00
Seth Vargo
68a2a2299e Use schema funcs for reading values from the env 2016-04-08 17:28:54 -04:00
Joe Topjian
fe0a7a5ec5 Allow Blank Region
When OS_REGION_NAME is not set, fall back to a blank string. This
will cause gophercloud to use the cloud's only region in
single-region clouds.
2015-04-11 05:10:10 +00:00
Julien Vey
2e37784065 Fix general comments by @phinze 2015-03-31 09:54:50 -06:00
Jon Perritt
acd5a033f0 fix typo in client variable name 2015-03-31 09:54:47 -06:00
Jon Perritt
a5147f472b update metadata before actual Update op 2015-03-31 09:54:47 -06:00
Jon Perritt
43564d1c5c object storage container v1 ops 2015-03-31 09:54:47 -06:00