Skip to content

VMware: add a new switch allow_raw_data to control raw data feature#939

Merged
TheRealFalcon merged 2 commits into
canonical:mainfrom
xiaofengw1205:xiaofengw-vmware-add-allow-raw-data-switch
Jul 8, 2021
Merged

VMware: add a new switch allow_raw_data to control raw data feature#939
TheRealFalcon merged 2 commits into
canonical:mainfrom
xiaofengw1205:xiaofengw-vmware-add-allow-raw-data-switch

Conversation

@xiaofengw1205
Copy link
Copy Markdown
Contributor

…update the documentation. Fix bugs about max_wait.

summary: Introduce a new switch allow_raw_data to control raw data feature, its default value is true. Also fix bugs about max_wait. Update the documentation accordingly.

Test Steps

Set allow_raw_data to True and False in datasource config, trigger the guest customization on VMware vsphere and verify cloud-init could get the execpted data source.

Checklist:

  • [ X] My code follows the process laid out in the documentation
  • [ X] I have updated or added any unit tests accordingly
  • [ X] I have updated or added any documentation accordingly

…update the documentation. Fix bugs about max_wait.
Copy link
Copy Markdown
Contributor

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

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

One nit inline.

Also, it might be time to start breaking up _get_data into smaller methods. I don't think it's necessary for this PR, but going through the layers of nesting is getting hard to read.

Comment thread cloudinit/sources/DataSourceOVF.py
@xiaofengw1205
Copy link
Copy Markdown
Contributor Author

One nit inline.

Also, it might be time to start breaking up _get_data into smaller methods. I don't think it's necessary for this PR, but going through the layers of nesting is getting hard to read.

Thanks, I agree with you. It needs a full test and I prefer to do it in another pull request. I have created an internal PR to address this.

@TheRealFalcon TheRealFalcon merged commit 108611a into canonical:main Jul 8, 2021
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.

2 participants