We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The resulting error is 'HTTPNotFound' Removing trailing slash fixes the issue.
Expectation: Presence of trailing slash makes no difference.
bad: knife[:vra_base_url] = 'https://vra.corp.local/'
knife[:vra_base_url] = 'https://vra.corp.local/'
good: knife[:vra_base_url] = 'https://vra.corp.local'
knife[:vra_base_url] = 'https://vra.corp.local'
The text was updated successfully, but these errors were encountered:
Would this work:
includer.class_eval do option :vra_base_url, long: '--vra-base-url API_URL', description: 'URL for the vRA server', proc: proc { |url| url.sub(/(\/)+$/,'') }
https://github.com/chef-partners/knife-vrealize/blob/0c793ca5aad23282611093cc98a08a130ca2c717/lib/chef/knife/cloud/vra_service_options.rb#L30
Sorry, something went wrong.
This seems pretty reasonable. I'd have to verify it on a vRA instance though. Can you put a PR in for the change?
3328a1a
Merge pull request #27 from chef-partners/vra_base_url
960156c
Fixes #24
No branches or pull requests
The resulting error is 'HTTPNotFound'
Removing trailing slash fixes the issue.
Expectation:
Presence of trailing slash makes no difference.
bad:
knife[:vra_base_url] = 'https://vra.corp.local/'
good:
knife[:vra_base_url] = 'https://vra.corp.local'
The text was updated successfully, but these errors were encountered: