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
Sync the syspurpose on runs of each relevant command #1898
Conversation
|
@candlepin-pull-request-bot please retest this. |
|
When I run locally, I get optparse.OptionConflictError: option --set: conflicting option string(s): --set |
|
@wottop That is fixed now. Along with other updates! Will ask @jirihnidek for review in the meanwhile as he'll be on before us tomorrow. |
|
@cnsnyder I try to fix most of issues in this PR. |
|
@cnsnyder I tried to fix several issues. Some unit tests are still falling. I will try to fix it later. |
f6a39cb
to
1a3579d
Compare
1a3579d
to
f6a39cb
Compare
|
|
||
| def set(self): | ||
| self._set(self.options.set) | ||
| success_msg = "{attr} set to \"{val}\".".format(attr=self.attr, val=self.options.set) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translated?
|
|
||
| def add(self): | ||
| self._add(self.options.to_add) | ||
| success_msg = "{attr} updated.".format(attr=self.name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translated?
|
|
||
| def unset(self): | ||
| self._unset() | ||
| success_msg = "{attr} unset.".format(attr=self.attr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translated?
|
|
||
| def remove(self): | ||
| self._remove(self.options.to_remove) | ||
| success_msg = "{attr} updated.".format(attr=self.name.capitalize()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translated?
| # help=_("service level to apply to this system")) | ||
| # self.parser.add_option("--unset", dest="unset", | ||
| # action='store_true', | ||
| # help=_("unset the service level for this system")) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we keeping these as comments for a reason?
|
@candlepin-pull-request-bot Retest this please |
2 similar comments
|
@candlepin-pull-request-bot Retest this please |
|
@candlepin-pull-request-bot Retest this please |
86a80c3
to
c13a0ca
Compare
|
@candlepin-pull-request-bot Retest this please |
* When system purpose is changed using followinf subcommands: service-level, role, usage, addons, then system purpose is synchronized with candlepin server * TODO: fix debug log of report message for this case
c13a0ca
to
c1927ba
Compare
|
ack |
This revises the Role, Usage, Addons, and ServiceLevel Commands.
Each of these now perform the sync action and display a message with a course of action if the result is not as expected.
The way to get this message to show up is in the reproducer steps in This bug