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

Set the ems last_refresh error/time attributes #296

Merged
merged 1 commit into from
Jul 11, 2018

Conversation

agrare
Copy link
Member

@agrare agrare commented Jul 10, 2018

After a refresh finishes set the last_refresh_error and
last_refresh_time attributes on the ems.

After a refresh finishes set the last_refresh_error and
last_refresh_time attributes on the ems.
@miq-bot
Copy link
Member

miq-bot commented Jul 10, 2018

Checked commit agrare@3b9118b with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
3 files checked, 2 offenses detected

app/models/manageiq/providers/vmware/infra_manager/inventory/collector.rb

app/models/manageiq/providers/vmware/infra_manager/inventory/saver.rb

@@ -84,5 +84,12 @@ def dequeue

def save_inventory(persister)
persister.persist!
update_ems_refresh_stats(persister.manager)
rescue => err
update_ems_refresh_stats(persister.manager, :error => err.to_s)
Copy link
Contributor

Choose a reason for hiding this comment

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

should we log the backtrace here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch I'll push a follow-up PR

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. 👍 Just one nit we can fix later.

@Ladas Ladas merged commit ff1deb1 into ManageIQ:master Jul 11, 2018
@Ladas Ladas added this to the Sprint 90 Ending Jul 16, 2018 milestone Jul 11, 2018
@agrare agrare deleted the update_ems_last_refresh branch July 11, 2018 10:55
agrare pushed a commit to agrare/manageiq-providers-vmware that referenced this pull request Apr 15, 2019
…rovisionrequest_denied_approver_href

Fix servicetemplateprovisionrequest_denied approver_href method.
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