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

Refactor redhat_preprovision method for VM Provisioning. #643

Merged

Conversation

pkomanek
Copy link
Contributor

@pkomanek pkomanek commented Mar 5, 2020

Method refactoring and test creation.

This PR is based on the issue below.
ManageIQ/manageiq#12038

@miq-bot add_label refactoring
@miq-bot assign @tinaafitz

@coveralls
Copy link

coveralls commented Mar 5, 2020

Pull Request Test Coverage Report for Build 4414

  • 45 of 45 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 97.75%

Totals Coverage Status
Change from base Build 4406: 0.01%
Covered Lines: 3432
Relevant Lines: 3511

💛 - Coveralls

@pkomanek pkomanek force-pushed the redhat_preprovision_method_refactoring branch from 1133c16 to 3aca2f2 Compare March 5, 2020 14:41
@pkomanek pkomanek changed the title [WIP]Refactor redhat_preprovision method for VM Provisioning. Refactor redhat_preprovision method for VM Provisioning. Mar 6, 2020
@miq-bot miq-bot removed the wip label Mar 6, 2020
@pkomanek pkomanek changed the title Refactor redhat_preprovision method for VM Provisioning. [WIP]Refactor redhat_preprovision method for VM Provisioning. Mar 6, 2020
@miq-bot miq-bot added the wip label Mar 6, 2020
@pkomanek pkomanek changed the title [WIP]Refactor redhat_preprovision method for VM Provisioning. Refactor redhat_preprovision method for VM Provisioning. Mar 12, 2020
@miq-bot miq-bot removed the wip label Mar 12, 2020
Comment on lines 31 to 33
res = "Owner: #{prov_opt[:owner_first_name]} #{prov_opt[:owner_last_name]}\n"\
"Email: #{prov_opt[:owner_email]}\n"\
"Source Template: #{template.name}"
Copy link
Member

Choose a reason for hiding this comment

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

res = %Q(
Owner: #{prov_opt[:owner_first_name]} #{prov_opt[:owner_last_name]}
Email: #{prov_opt[:owner_email]}
Source Template: #{template.name}
)

@lfu
Copy link
Member

lfu commented Mar 24, 2020

It looks good except minor change.

@pkomanek pkomanek force-pushed the redhat_preprovision_method_refactoring branch from 3aca2f2 to ef39009 Compare March 24, 2020 15:50
@lfu
Copy link
Member

lfu commented Mar 24, 2020

Please use % over %Q to satisfy rubocop.

@pkomanek pkomanek force-pushed the redhat_preprovision_method_refactoring branch from ef39009 to 3f5aadb Compare March 25, 2020 16:57
@miq-bot
Copy link
Member

miq-bot commented Mar 25, 2020

Checked commits pkomanek/manageiq-content@d5448b4~...3f5aadb with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.28.0, and yamllint
2 files checked, 0 offenses detected
Everything looks fine. 👍

@djberg96
Copy link
Contributor

@tinaafitz look ok?

@tinaafitz tinaafitz merged commit 49d7d90 into ManageIQ:master Aug 3, 2020
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.

6 participants