-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: Remove crmsh/ordereddict.py (#1485)
It's sufficient to use built-in dict under python 3.7+ as it maintains insertion order.
- Loading branch information
Showing
6 changed files
with
20 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
# Copyright (C) 2008-2011 Dejan Muhamedagic <[email protected]> | ||
# See COPYING for license information. | ||
|
||
from .ordereddict import odict | ||
|
||
|
||
cib_cli_map = { | ||
"node": "node", | ||
"primitive": "primitive", | ||
|
@@ -64,23 +60,23 @@ | |
"deny": "deny", | ||
} | ||
acl_rule_names = ("read", "write", "deny") | ||
acl_spec_map = odict({ | ||
acl_spec_map = { | ||
"xpath": "xpath", | ||
"ref": "ref", | ||
"tag": "tag", | ||
"attribute": "attribute", | ||
}) | ||
} | ||
# ACLs were rewritten in pacemaker 1.1.12 | ||
# this is the new acl syntax | ||
acl_spec_map_2 = odict({ | ||
acl_spec_map_2 = { | ||
"xpath": "xpath", | ||
"ref": "reference", | ||
"reference": "reference", | ||
"tag": "object-type", | ||
"type": "object-type", | ||
"attr": "attribute", | ||
"attribute": "attribute" | ||
}) | ||
} | ||
|
||
acl_spec_map_2_rev = (('xpath', 'xpath'), | ||
('reference', 'ref'), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters