Skip to content

Commit

Permalink
fix: CloudBase error
Browse files Browse the repository at this point in the history
... openstack/latest/meta_data.json not found

Signed-off-by: Vaerh <[email protected]>
  • Loading branch information
vaerh committed Oct 31, 2023
1 parent d6869ca commit d0c51ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cid/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestProvider(t *testing.T) {

// ImageFileEqual(
// "vm-101-cloud-init."+isoSuffix.String(),
// "/openstack/latest/meta-data.json",
// "/openstack/latest/meta_data.json",
// `{"uuid":"98208689-b17d-47c7-889f-b0f7ebb06a21","hostname":"testhost.fqdn",`+
// `"network_config":{"content_path":"/content/0000"}}`,
// ),
Expand Down
6 changes: 3 additions & 3 deletions cid/resource_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ func (r *cloudInitDriveResource) CreateCloudInitDrive(ctx context.Context, resou
switch ParseCiDriveType(resourcePlan.DriveType.ValueString()) {
case ConfigDrive2:
cdLabel = "config-2"
files["meta-data"] = "/openstack/latest/meta-data.json"
files["user-data"] = "/openstack/latest/user-data"
files["vendor-data"] = "/openstack/latest/vendor-data.json"
files["meta-data"] = "/openstack/latest/meta_data.json"
files["user-data"] = "/openstack/latest/user_data"
files["vendor-data"] = "/openstack/latest/vendor_data.json"
files["network-data"] = "/content/0000"
case NoCloud:
cdLabel = "CIDATA"
Expand Down

0 comments on commit d0c51ff

Please sign in to comment.