Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Subclass VmScan job as ManageIQ::Providers::Microsoft::InfraManager::Scanning::Job #153

Merged
merged 2 commits into from
Jan 6, 2020

Conversation

chessbyte
Copy link
Member

@chessbyte chessbyte commented Dec 6, 2019

State Machine diagram for this subclass of VmScan.

manageiq-providers-microsoft-infra_manager-scanning-job

@chessbyte
Copy link
Member Author

@roliveri @jerryk55 if you have the environment to test SmartState for SCVMM with this and the base PR, it would be much appreciated.

end

def call_snapshot_create
_log.info("Enter")
Copy link
Collaborator

Choose a reason for hiding this comment

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

I vote for a nicer message 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.

@djberg96 while I agree, I would do that in a separate PR. I am just refactoring here - trying to change the least amount possible and ensure everything still works.

return
rescue Timeout::Error
msg = "Request to delete snapshot timed out"
_log.error(msg)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same issue here as I mentioned in the other one. Without a return, won't this look like it succeeded?

Copy link
Member Author

Choose a reason for hiding this comment

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

@djberg96 I wonder how this worked prior to this refactoring.

@miq-bot
Copy link
Member

miq-bot commented Dec 11, 2019

Checked commits chessbyte/manageiq-providers-scvmm@95076ea~...25fdafd with ruby 2.5.5, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
4 files checked, 29 offenses detected

app/models/manageiq/providers/microsoft/infra_manager/scanning/job.rb

@agrare agrare merged commit c9a3eed into ManageIQ:master Jan 6, 2020
@agrare agrare added this to the Sprint 127 Ending Jan 6, 2020 milestone Jan 6, 2020
@chessbyte chessbyte deleted the subclass_vm_scan branch July 9, 2020 15:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants