Skip to content

VMware plugin: Fixed: Restore to local file required API connection#1219

Merged
pstorz merged 3 commits intobareos:masterfrom
Sedl:vmware-fd-localvmdk-fix
Aug 23, 2022
Merged

VMware plugin: Fixed: Restore to local file required API connection#1219
pstorz merged 3 commits intobareos:masterfrom
Sedl:vmware-fd-localvmdk-fix

Conversation

@Sedl
Copy link
Contributor

@Sedl Sedl commented Aug 11, 2022

Restoring a VM to a local file using the VMware plugin required a valid
connection to the vSphere API.
This makes a restore in a worst-case scenario where you lose your
vCenter installation unnecessarily complicated.
This commit fixes the option check logic and does not connect to the
vCenter API when localvmdk is set to yes.

Thank you for contributing to the Bareos Project!

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

General
  • PR name is meaningful
  • Purpose of the PR is understood
  • Separate commit for this PR in the CHANGELOG.md, PR number referenced is same
  • Commit descriptions are understandable and well formatted
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • bareos-check-sources --since-merge does not report any problems
  • git status should not report modifications in the source tree after building and testing

@sduehr sduehr self-requested a review August 11, 2022 08:34
@sduehr sduehr self-assigned this Aug 11, 2022
Sedl and others added 3 commits August 23, 2022 00:00
Restoring a VM to a local file using the VMware plugin required a valid
connection to the vSphere API.
This makes a restore in a worst-case scenario where you lose your
vCenter installation unnecessarily complicated.
This commit fixes the option check logic and does not connect to the
vCenter API when localvmdk is set to yes.
Code formatting with black and copyright year to comply with
coding guidelines.
@sduehr sduehr force-pushed the vmware-fd-localvmdk-fix branch from 8473103 to 2f1aa09 Compare August 22, 2022 22:12
Copy link
Member

@sduehr sduehr left a comment

Choose a reason for hiding this comment

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

Thanks a lot for your contribution, looks good.
I only changed copyright year and the code formatting to comply with the guidelines, and resolved the CHANGELOG.md merge conflict.

@pstorz pstorz merged commit 8c410d9 into bareos:master Aug 23, 2022
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