Skip to content

Commit

Permalink
code test
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Dec 10, 2019
1 parent 8023fe8 commit 75acf0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crmsh/cibconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -3231,7 +3231,8 @@ def filter_objects(self, filters):
continue
if spec == "changed":
obj_set |= orderedset.oset(self.modified_elems())
obj_set |= orderedset.oset(self.remove_queue)
if "from_show" in filters:
obj_set |= orderedset.oset(self.remove_queue)
elif spec.startswith("type:"):
obj_set |= orderedset.oset(self.get_elems_on_type(spec))
elif spec.startswith("tag:"):
Expand Down
2 changes: 2 additions & 0 deletions crmsh/ui_configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,8 @@ def do_show(self, context, *args):
from .utils import obscure
osargs = [arg[8:] for arg in args if arg.startswith('obscure:')]
args = [arg for arg in args if not arg.startswith('obscure:')]
if "changed" in args:
args.append("from_show")
with obscure(osargs):
set_obj = mkset_obj(*args)
return set_obj.show()
Expand Down

0 comments on commit 75acf0a

Please sign in to comment.