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

mgr/mgr_module : Fix keyerror for op if rule steps first element is opcode #36947

Merged
merged 1 commit into from Sep 7, 2020

Conversation

pdvian
Copy link

@pdvian pdvian commented Sep 2, 2020

Fixes : https://tracker.ceph.com/issues/47272

Signed-off-by: Prashant Dhange pdhange@redhat.com

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

Copy link
Member

@batrick batrick left a comment

Choose a reason for hiding this comment

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

Please fix the formatting for your commit message in 4048dd9:



mgr/mgr_module: fix keyerror for op

If rule steps first element is opcode.

Fixes: https://tracker.ceph.com/issues/47272

In particular, the whitespace around the colons.

@pdvian
Copy link
Author

pdvian commented Sep 2, 2020

Thanks @batrick. Let me correct it.

@pdvian
Copy link
Author

pdvian commented Sep 2, 2020

The more simpler way would be :

first_take = [s for s in rule['steps'] if 'op' in s and s['op'] == 'take'][0]

@batrick
Copy link
Member

batrick commented Sep 3, 2020

Fixes: whitespace needs fixed too please.

If rule steps first element is opcode.

Fixes: https://tracker.ceph.com/issues/47272

Signed-off-by: Prashant Dhange <pdhange@redhat.com>
@batrick
Copy link
Member

batrick commented Sep 4, 2020

jenkins test api

@tchaikov tchaikov merged commit e3e6d30 into ceph:master Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants