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

OC-9368 Image_os_type option should be compulsory in knife-openstack. #48

Merged

Conversation

siddheshwar-more
Copy link

Implemented changes to make image_os_type compulsory.
Please review.
Thanks!

@@ -115,6 +115,9 @@ def validate_params!
else
errors << "You must provide a valid bootstrap protocol. options [ssh/winrm]. For linux type images, options [ssh]"
end

errors << "You must provide --image-os-type option [windows/linux]" if ! (%w(windows linux).include?(locate_config_value(:image_os_type)))
Copy link

Choose a reason for hiding this comment

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

This check should go in knife-cloud.
The image_os_type field is compulsory for all - but it needs to be entered explicitly by the user of openstack.
For other plugins, we must set it programatically.

@adamedx adamedx merged commit 78c5ccd into chef:knife-cloud Aug 20, 2013
@tas50 tas50 added Type: Enhancement Adds new functionality. and removed Enhancement labels Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Adds new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants