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

Default VM connection_state is now 'connected' #305

Merged
merged 1 commit into from
Nov 20, 2018

Conversation

miha-plesko
Copy link
Contributor

With this commit we migrate all occurances of

vm.connection_state == nil

to now contain 'connected' instead nil.

@miq-bot assign @agrare

/cc @kbrock

@miha-plesko
Copy link
Contributor Author

Related to ManageIQ/manageiq#18216

@miq-bot add_label data

@miq-bot miq-bot added the data label Nov 19, 2018
@agrare agrare requested review from kbrock and bdunne November 19, 2018 15:22
@miha-plesko miha-plesko force-pushed the default-vm-connection-state branch from cef22dd to 3032ff3 Compare November 19, 2018 16:05
@miha-plesko
Copy link
Contributor Author

Nice find @agrare , didn't think of VmOrTemplate, updated.

Copy link
Member

@bdunne bdunne left a comment

Choose a reason for hiding this comment

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

👍 LGTM

end
end

describe 'in other region' do
Copy link
Member

Choose a reason for hiding this comment

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

@miha-plesko we don't need to test that in_my_region works so you can just get rid of this and simplify the tests a bit

Copy link
Member

@kbrock kbrock left a comment

Choose a reason for hiding this comment

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

Thanks @miha-plesko

With this commit we migrate all occurances of

```
vm.connection_state == nil
```

to now contain 'connected' instead nil.

Signed-off-by: Miha Pleško <[email protected]>
@miha-plesko miha-plesko force-pushed the default-vm-connection-state branch from 3032ff3 to c8b9cb8 Compare November 20, 2018 07:45
@miha-plesko
Copy link
Contributor Author

Simplified the specs, good to go @agrare

@miq-bot
Copy link
Member

miq-bot commented Nov 20, 2018

Checked commit miha-plesko@c8b9cb8 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 1 offense detected

db/migrate/20181119154009_set_vm_connection_state.rb

@agrare
Copy link
Member

agrare commented Nov 20, 2018

Thanks @miha-plesko

@agrare agrare merged commit 9f5517a into ManageIQ:master Nov 20, 2018
@agrare agrare added this to the Sprint 99 Ending Nov 19, 2018 milestone Nov 20, 2018
@kbrock
Copy link
Member

kbrock commented Nov 20, 2018

Also, thanks for using update_all and ignoring rubocop.

Good stuff
(0% snark)

@agrare
Copy link
Member

agrare commented Nov 20, 2018

Also, thanks for using update_all and ignoring rubocop.

👍 agreed

(0% snark)

😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants