Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs #1033 fix security profile for azure_rm_virtualmachine_info #1205

Merged

Conversation

Klaas-
Copy link
Contributor

@Klaas- Klaas- commented Jun 30, 2023

SUMMARY

The output of the restapi for the VM does not always contain SecurityProfile, it furthermore only contains some information, I ran into an issue when enabling encryption_at_host, the API will then return:

    "securityProfile": {
      "encryptionAtHost": true
    },

and not the other keys that you expect in your code, so I made them all set-only-when-returned. I did not test if there are specific combinations that will always be set together, I do not use trusted launch/tpm in my env yet. I also changed the return value table to reflect that securityProfile is not always returned as well as the other values.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

azure_rm_virtualmachine_info.py

@Klaas-
Copy link
Contributor Author

Klaas- commented Jun 30, 2023

I am guessing there is a problem in the rest api at the heart of this, but for the time being we have to deal with it :)

Klaas- and others added 2 commits July 5, 2023 09:57
Fix indentation

Co-authored-by: Fred-sun <37327967+Fred-sun@users.noreply.github.com>
Fix indentation

Co-authored-by: Fred-sun <37327967+Fred-sun@users.noreply.github.com>
@Klaas-
Copy link
Contributor Author

Klaas- commented Jul 5, 2023

Thanks for the review, I have to check why that was not done automatically by my IDE :)

@Klaas-
Copy link
Contributor Author

Klaas- commented Jul 5, 2023

@Fred-sun do you use squash on merge or shall I squash it ?

@Fred-sun
Copy link
Collaborator

Fred-sun commented Jul 5, 2023

@Klaas- After my review, other developers will review and merge. Thank you!

@Fred-sun Fred-sun added ready_for_review The PR has been modified and can be reviewed and merged high_priority High priority labels Jul 5, 2023
@Klaas- Klaas- changed the title Refs #1033 fix security profile for virtualimachine_info Refs #1033 fix security profile for azure_rm_virtualmachine_info Jul 5, 2023
@xuzhang3
Copy link
Collaborator

xuzhang3 commented Jul 7, 2023

@Klaas- LGTM 🚢

@xuzhang3 xuzhang3 merged commit 76f4efd into ansible-collections:dev Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high_priority High priority ready_for_review The PR has been modified and can be reviewed and merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants