Skip to content

feat: add sztaki specific block_device support for OpenStack VMs#279

Merged
jaydesl merged 1 commit into
micado-scale:mainfrom
kotak-Gunjan:fix_sztaki_openstack
Jun 3, 2025
Merged

feat: add sztaki specific block_device support for OpenStack VMs#279
jaydesl merged 1 commit into
micado-scale:mainfrom
kotak-Gunjan:fix_sztaki_openstack

Conversation

@kotak-Gunjan

Copy link
Copy Markdown
Contributor

Please check that the PR fulfills these requirements

  • The commit message follows conventional commit guidelines
  • Unit tests for the changes have been added
  • Docs have been added / updated
  • Changelog has been updated

What type of PR is this? (Bug fix, feature, docs update, ...)

What does the PR do / why is it needed?

Which issue(s) does this PR fix:

Fixes #

Does this PR introduce a user-facing change?

Other information:

@jaydesl jaydesl requested a review from Copilot June 3, 2025 08:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces Sztaki-specific block_device support for OpenStack VMs by augmenting the Terraform template generation.

  • Added extraction of auth_url (and tenant_id) to detect Sztaki endpoints.
  • Conditionally adds block_device configuration for Sztaki VMs in the get_virtual_machine function.
  • Removed duplicate extraction of auth_url and tenant_id later in the file.

auth_url = (
properties.get("auth_url")
or properties.get("endpoint")
or properties.get("endpoint_cloud")

This comment was marked as spam.

or properties.get("endpoint_cloud")
)
is_sztaki = "sztaki" in auth_url.lower()
tenant_id = properties.get("project_id")

Copilot AI Jun 3, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The variable tenant_id is set but not used within the shown diff. If it is not required, consider removing it to reduce unused code clutter.

Copilot uses AI. Check for mistakes.
@jaydesl jaydesl merged commit 13ae415 into micado-scale:main Jun 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants