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

Fix Compare Current and Desired queue arrays #16325

Merged
merged 1 commit into from
Oct 30, 2017

Conversation

juliancheal
Copy link
Member

@juliancheal juliancheal commented Oct 27, 2017

  • Flatten & sort arrays
  • Compare values return boolean.

Changed if current != desired to unless method as compare_queues
returns a boolean.

@juliancheal
Copy link
Member Author

@miq-bot add_label bug

@juliancheal
Copy link
Member Author

@miq-bot assign @Fryguy

@juliancheal juliancheal changed the title [WIP] Fix Compare Current and Desired queue arrays Fix Compare Current and Desired queue arrays Oct 27, 2017
@juliancheal
Copy link
Member Author

I'll fix stopping Amazon refresh workers in a follow up PR.

@miq-bot miq-bot removed the wip label Oct 27, 2017
@juliancheal juliancheal force-pushed the fix_multi_ems_workers branch 2 times, most recently from d489824 to acfe2bb Compare October 27, 2017 15:44
@@ -114,6 +114,10 @@ def ems_id_from_queue_name(queue_name)
def ems_from_queue_name(queue_name)
ExtManagementSystem.find_by(:id => ems_id_from_queue_name(queue_name))
end

def compare_queues(current, desired)
Copy link
Member

Choose a reason for hiding this comment

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

Should this be a private method?

@juliancheal
Copy link
Member Author

juliancheal commented Oct 27, 2017 via email

* Flatten & sort arrays
* Compare values return boolean.

Changed `if current != desired` to unless method as compare_queues
returns a boolean.
@miq-bot
Copy link
Member

miq-bot commented Oct 30, 2017

Checked commit juliancheal@cb4b389 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. ⭐

@juliancheal
Copy link
Member Author

@Fryguy made the method private

@Fryguy Fryguy merged commit f5fa282 into ManageIQ:master Oct 30, 2017
@Fryguy Fryguy added this to the Sprint 72 Ending Oct 30, 2017 milestone Oct 30, 2017
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.

3 participants