Skip to content

Commit

Permalink
cloudengine: Modify the bug in the query configuration method (#56)
Browse files Browse the repository at this point in the history
* ce_rollback

* ce_rollback/changelog

* rollback

(cherry picked from commit f34881d)
  • Loading branch information
lonely123 authored and patchback[bot] committed Dec 7, 2021
1 parent dde4f99 commit 31c750b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- "ce - Modify the bug in the query configuration method (https://github.com/ansible-collections/community.network/pull/56)."
2 changes: 1 addition & 1 deletion plugins/modules/network/cloudengine/ce_rollback.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def get_rollback_dict(self):
for cfg in cfg_line:
if re.findall(r'^\d', cfg):
pre_rollback_info = cfg.split()
rollback_info["RollBackInfos"].append(dict(commitId=pre_rollback_info[1], userLabel=pre_rollback_info[2]))
rollback_info["RollBackInfos"].append(dict(commitId=pre_rollback_info[1].replace('*', ''), userLabel=pre_rollback_info[2]))

return rollback_info

Expand Down

0 comments on commit 31c750b

Please sign in to comment.