cloudbase / cloudbase-init

Cross-platform instance initialization
http://openstack.org
Apache License 2.0
421 stars 149 forks source link

Keeps full content path to network_config file #3

Closed fl0yd closed 9 years ago

fl0yd commented 9 years ago

Using the previous method, only the last item after the last "/" was returned.

The get_content method prepends "openstack" + "/" + "content" + "/" to the path, so the subdirectory path and its contents should be passed in.

For example with the following JSON:

{ "uuid": "fake-UUID", "hostname": "fakehost", "network_config":{ "content_path": "/content/0000/network_config" } }

The updated method reads content from /openstack/content/0000/network_config rather than trying to read it from /openstack/content/network_config.

This change makes the directory structure more true to form.

openstack-gerrit commented 9 years ago

Thank you for contributing to stackforge/cloudbase-init!

stackforge/cloudbase-init uses Gerrit for code review.

Please visit http://wiki.openstack.org/GerritWorkflow and follow the instructions there to upload your change to Gerrit.