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

Allow a 'type' setter on MiddlewareServer #16126

Merged
merged 1 commit into from
Oct 6, 2017

Conversation

tumido
Copy link
Member

@tumido tumido commented Oct 5, 2017

Add 'type' into inventory_object_attributes so it can be modified when parsing inventory

Related to: ManageIQ/manageiq-providers-hawkular#60

Add 'type' into `inventory_object_attributes` so it can be modified when
parsing inventory

Related to: ManageIQ/manageiq-providers-hawkular#60
@miq-bot
Copy link
Member

miq-bot commented Oct 5, 2017

Checked commit tumido@76fb9f8 with ruby 2.3.1, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@@ -27,7 +27,7 @@ def has_middleware_manager_servers(options = {})
has_inventory({
:model_class => provider_module::MiddlewareManager::MiddlewareServer,
:association => :middleware_servers,
:inventory_object_attributes => %i(type_path hostname product lives_on_id lives_on_type
:inventory_object_attributes => %i(type type_path hostname product lives_on_id lives_on_type
Copy link
Member

Choose a reason for hiding this comment

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

Is this how we do type for other objects? cc @Ladas

Copy link
Contributor

Choose a reason for hiding this comment

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

We do type like this if there are sub STI classes we need to set, which seems to be the case.

Copy link
Contributor

@Ladas Ladas left a comment

Choose a reason for hiding this comment

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

looks good 👍

@Fryguy Fryguy merged commit 6be8273 into ManageIQ:master Oct 6, 2017
@Fryguy Fryguy added this to the Sprint 71 Ending Oct 16, 2017 milestone Oct 6, 2017
@tumido tumido deleted the migrate_mw_server_to_wildfly branch June 26, 2018 14:17
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.

5 participants