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 orchestrated destroy #15339

Merged
merged 1 commit into from
Jun 14, 2017
Merged

Conversation

zeari
Copy link

@zeari zeari commented Jun 8, 2017

Small fix to #14848
@jrafanie @durandom

@durandom
Copy link
Member

durandom commented Jun 8, 2017

@miq-bot add_labels bug, providers
@miq-bot assign @jrafanie

@zeari
Copy link
Author

zeari commented Jun 8, 2017

cc @simon3z

@@ -449,8 +449,8 @@ def orchestrate_destroy
disable! if enabled?

if self.destroy == false
_log.info("Cant #{self.class.name} with id: #{id}, workers still in progress. Requeuing destroy...")
schedule_destroy_queue(id, :deliver_on => 15.seconds.from_now)
_log.info("Cant destroy #{self.class.name} with id: #{id}, workers still in progress. Requeuing destroy...")
Copy link
Member

Choose a reason for hiding this comment

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

Can you change this to Cannot destroy or Not destroying...? Sorry I didn't see this before. Cant doesn't look right

Copy link
Member

@jrafanie jrafanie left a comment

Choose a reason for hiding this comment

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

Minor typo

@zeari
Copy link
Author

zeari commented Jun 11, 2017

Minor typo

fixed

@@ -449,8 +449,8 @@ def orchestrate_destroy
disable! if enabled?

if self.destroy == false
_log.info("Cant #{self.class.name} with id: #{id}, workers still in progress. Requeuing destroy...")
schedule_destroy_queue(id, :deliver_on => 15.seconds.from_now)
_log.info("Cannot destroy destroy #{self.class.name} with id: #{id}, workers still in progress. Requeuing destroy...")
Copy link
Member

Choose a reason for hiding this comment

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

oops, sorry @zeari, there's one too many destroys here ^

@miq-bot
Copy link
Member

miq-bot commented Jun 14, 2017

Checked commit zeari@bfd57a5 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@zeari
Copy link
Author

zeari commented Jun 14, 2017

oops, sorry @zeari, there's one too many destroys here ^

Sorry about that. fixed again.

_log.info("Cant #{self.class.name} with id: #{id}, workers still in progress. Requeuing destroy...")
schedule_destroy_queue(id, :deliver_on => 15.seconds.from_now)
_log.info("Cannot destroy #{self.class.name} with id: #{id}, workers still in progress. Requeuing destroy...")
self.class.schedule_destroy_queue(id, 15.seconds.from_now)
Copy link
Member

Choose a reason for hiding this comment

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

in the future, please add a test.

@jrafanie jrafanie merged commit 1adc252 into ManageIQ:master Jun 14, 2017
@jrafanie jrafanie added this to the Sprint 63 Ending Jun 19, 2017 milestone Jun 14, 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.

4 participants