Skip to content

Commit 67351de

Browse files
akinrosslhercot
authored andcommitted
[ignore] sanity fixes in aci.py to leverage rsplit function with maxsplit set to 1
1 parent 9fe129c commit 67351de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/module_utils/aci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@ def fail_json(self, msg, **kwargs):
14911491

14921492
def dump_json(self):
14931493
if self.params.get("state") in ("absent", "present"):
1494-
dn_path = (self.url).split("/mo/")[-1]
1494+
dn_path = self.url.rsplit("/mo/", maxsplit=1)[-1]
14951495
if dn_path[-5:] == ".json":
14961496
dn_path = dn_path[:-5]
14971497
mo = {}

0 commit comments

Comments
 (0)