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

vmware_guest: Define sub-options of disk in argument_spec #640

Merged

Conversation

mariolenz
Copy link
Collaborator

SUMMARY

As a follow-up to #595 I'd also like to define the inner structure of disk in argument_spec.

ISSUE TYPE
  • Docs Pull Request
COMPONENT NAME

vmware_guest

ADDITIONAL INFORMATION

I think that a correct argument_spec helps us a lot. For example, we don't have to check manually for a valid controller_type if we define choices=['buslogic', 'lsilogic', 'paravirtual', 'lsilogicsas', 'sata', 'nvme'].

@ansibullbot
Copy link

@ansibullbot ansibullbot added WIP Work in progress cloud docs module module needs_triage Needs a first human triage before being processed. plugins plugin (any type) labels Feb 3, 2021
@mariolenz
Copy link
Collaborator Author

recheck

@mariolenz mariolenz force-pushed the vmware_guest-disk_suboptions branch 2 times, most recently from fb6d086 to a3add69 Compare February 4, 2021 17:00
@mariolenz
Copy link
Collaborator Author

@mariolenz
Copy link
Collaborator Author

mariolenz commented Feb 4, 2021

@mariolenz
Copy link
Collaborator Author

recheck

1 similar comment
@Akasurde
Copy link
Member

Akasurde commented Feb 5, 2021

recheck

@ansibullbot ansibullbot removed the needs_triage Needs a first human triage before being processed. label Feb 5, 2021
@mariolenz mariolenz changed the title [WIP] vmware_guest: Define sub-options of disk in argument_spec vmware_guest: Define sub-options of disk in argument_spec Feb 5, 2021
@mariolenz mariolenz removed the WIP Work in progress label Feb 5, 2021
@mariolenz
Copy link
Collaborator Author

recheck

1 similar comment
@mariolenz
Copy link
Collaborator Author

recheck

@mariolenz
Copy link
Collaborator Author

This doesn't look to have anything to do with my changes, it looks like a CI problem:

ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly

@Akasurde
Copy link
Member

Akasurde commented Feb 8, 2021

@mariolenz I think ansible/ansible#73525 will solve the CI related issue.

@mariolenz
Copy link
Collaborator Author

recheck

@MalfuncEddie
Copy link

MalfuncEddie commented Mar 9, 2021

Hi @mariolenz

could you please alter the line

if not disk_spec['controller_type'] or not disk_spec['controller_number'] or not disk_spec['unit_number']:

to

if not disk_spec['controller_type'] or (not disk_spec['controller_number'] and disk_spec['controller_number'] != 0) or (not disk_spec['unit_number'] and disk_spec['controller_number'] != 0):

to solve #703

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants