Skip to content

Commit 6a367c7

Browse files
authored
Merge pull request #47 from lrivallain/PolicyTemplate
Add support for PolicyTemplate items #46
2 parents 04a8b49 + f16d689 commit 6a367c7

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

HISTORY.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
History
33
=======
44

5+
6+
2.2.2 (2020-12-15)
7+
------------------
8+
9+
Add support for PolicyTemplate items #46
10+
11+
512
2.2.1 (2020-11-06)
613
------------------
714

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
'Programming Language :: Python :: 3.6',
5656
'Programming Language :: Python :: 3.7',
5757
'Programming Language :: Python :: 3.8',
58+
'Programming Language :: Python :: 3.9',
5859
'Operating System :: MacOS :: MacOS X',
5960
'Operating System :: Microsoft :: Windows', 'Operating System :: Unix',
6061
'Operating System :: POSIX :: Linux',

vro_package_diff/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
'vro_element',
1414
]
1515

16-
__version__ = "2.2.1"
16+
__version__ = "2.2.2"
1717
"""Define the version of the package.
1818
"""

vro_package_diff/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"ScriptModule",
1919
"Action",
2020
"ResourceElement",
21-
"ConfigurationElement"
21+
"ConfigurationElement",
22+
"PolicyTemplate"
2223
]
2324
"""list: Currently support is limited to the following types of items."""
2425

vro_package_diff/vro_element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def read_data(self):
117117
if self.type == 'Workflow':
118118
namespaces = {'workflow': 'http://vmware.com/vco/workflow'}
119119
self.name = root.find('workflow:display-name', namespaces).text
120-
elif self.type == 'Action' or self.type == "ScriptModule":
120+
elif self.type == 'Action' or self.type == "ScriptModule" or self.type == "PolicyTemplate":
121121
self.name = root.get('name')
122122
elif self.type == 'ConfigurationElement':
123123
self.name = root.find('display-name').text

0 commit comments

Comments
 (0)