cloud-governance 1.1.377__py3-none-any.whl → 1.1.379__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -182,6 +182,8 @@ class EnvironmentVariables:
182
182
  self._environment_variables_dict['tag_remove_name'] = EnvironmentVariables.get_env('tag_remove_name', '')
183
183
  self._environment_variables_dict['tag_custom'] = EnvironmentVariables.get_env('tag_custom', '{}')
184
184
 
185
+ self._environment_variables_dict['RESOURCE_TO_TAG'] = EnvironmentVariables.get_env('RESOURCE_TO_TAG', '')
186
+
185
187
  # Common env vars
186
188
  self._environment_variables_dict['dry_run'] = EnvironmentVariables.get_env('dry_run', 'yes')
187
189
  self._environment_variables_dict['FORCE_DELETE'] = EnvironmentVariables.get_boolean_from_environment(
@@ -106,8 +106,9 @@ class TagResources:
106
106
  "classic_baremetals",
107
107
  "classic_virtual_machines"
108
108
  ]
109
- if self.resource_to_tag and self.resource_to_tag in vpc_resources:
110
- vpc_resources = [self.resource_to_tag]
109
+ if self.resource_to_tag:
110
+ resources_to_tag = [resource.strip() for resource in self.resource_to_tag.split(',')]
111
+ vpc_resources = list(set(vpc_resources) & set(resources_to_tag))
111
112
  logger.info(f"Running tag operation on total of {len(vpc_resources)} resources")
112
113
  errors = messages = {}
113
114
  for vpc_resource in vpc_resources:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloud-governance
3
- Version: 1.1.377
3
+ Version: 1.1.379
4
4
  Summary: Cloud Governance Tool
5
5
  Home-page: https://github.com/redhat-performance/cloud-governance
6
6
  Author: Red Hat
@@ -143,7 +143,7 @@ cloud_governance/common/utils/configs.py,sha256=shFxWt0Kc-GwzcZKYCkHm058ujwdTxn4
143
143
  cloud_governance/common/utils/json_datetime_encoder.py,sha256=_-jzRTe0UqAKTn2E9qaU8SYIxHUoRA5ElWuVA0Y54Xw,338
144
144
  cloud_governance/common/utils/utils.py,sha256=ZUsi4ax2XhDIV-EQ5kJt5Ppd72kmm2psqcg1cNDZrvc,4349
145
145
  cloud_governance/main/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
146
- cloud_governance/main/environment_variables.py,sha256=ultgSpJ-WaFP4Q5Sh_pb0B_dfxxpity6mthioDUC7k8,29333
146
+ cloud_governance/main/environment_variables.py,sha256=fxGtPqdoRyXk0T7Hp6oSoCoPrEc3d80551v6d_vdaKk,29448
147
147
  cloud_governance/main/environment_variables_exceptions.py,sha256=UR0Ith0P0oshsDZdJRlRq8ZUTt0h8jFvUtrnP4m4AIY,437
148
148
  cloud_governance/main/es_uploader.py,sha256=6Ify5CS2NtUF1xXZ-rMwpYxVzDKfEZhv2vogWFltt98,10656
149
149
  cloud_governance/main/main.py,sha256=4TBiCBO_1z8KpGXb8brPKBmv3jHBl8fl_-Sb80ctYno,18880
@@ -203,7 +203,7 @@ cloud_governance/policy/ibm/cost_usage_reports.py,sha256=UoiGugo9wCtoEKBWd-a4hbk
203
203
  cloud_governance/policy/ibm/ibm_cost_over_usage.py,sha256=C9ZkpMjRao9FQ2iZSXFdXqGxctBZVoLe-JXEupqIJ10,3595
204
204
  cloud_governance/policy/ibm/ibm_cost_report.py,sha256=xv-TX4eDgnTt5EM_iCLrUwj5hXRmHrsCfE6bs-bSlIo,5716
205
205
  cloud_governance/policy/ibm/tag_baremetal.py,sha256=7vVh3t4mqs_RDEzSwUS1E2xQzHnwJYPs3lGn5V7d3RU,5329
206
- cloud_governance/policy/ibm/tag_resources.py,sha256=g0ypZuKsQrJxscWDmcCdXHm9AS2fpMWsqpMCorF_Tdc,6324
206
+ cloud_governance/policy/ibm/tag_resources.py,sha256=9FhaO3P8L-cbuvJUD-gO3MpM8WPFyOHlTJyi19H3Dzk,6406
207
207
  cloud_governance/policy/ibm/tag_vm.py,sha256=G3QLYwuB2cWSHAsoR40BHVBV5nmGVcVzLtJLmM3MenA,4836
208
208
  cloud_governance/policy/policy_operations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
209
209
  cloud_governance/policy/policy_operations/aws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -264,8 +264,8 @@ cloud_governance/policy/policy_runners/elasticsearch/__init__.py,sha256=47DEQpj8
264
264
  cloud_governance/policy/policy_runners/elasticsearch/upload_elastic_search.py,sha256=pOwUJWXjJbyTy8iv3Ap8xJGnqQe-5lZgoR8-vGfAVos,1881
265
265
  cloud_governance/policy/policy_runners/ibm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
266
266
  cloud_governance/policy/policy_runners/ibm/policy_runner.py,sha256=V0E_f7F3hXit0aSq4BlfX1Jd4vjR2NEvOWsJ5upvZ4o,1302
267
- cloud_governance-1.1.377.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
268
- cloud_governance-1.1.377.dist-info/METADATA,sha256=8hNt339v8vASubbNd00-PGGKeq9WzNVv0cbVRkfX4uQ,11384
269
- cloud_governance-1.1.377.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
270
- cloud_governance-1.1.377.dist-info/top_level.txt,sha256=jfB1fgj7jvx3YZkZA4G6hFeS1RHO7J7XtnbjuMNMRww,17
271
- cloud_governance-1.1.377.dist-info/RECORD,,
267
+ cloud_governance-1.1.379.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
268
+ cloud_governance-1.1.379.dist-info/METADATA,sha256=0CiUaleiC1goiYuKsn_eLQMDbm1Gy4YMdO4PxVT3eS8,11384
269
+ cloud_governance-1.1.379.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
270
+ cloud_governance-1.1.379.dist-info/top_level.txt,sha256=jfB1fgj7jvx3YZkZA4G6hFeS1RHO7J7XtnbjuMNMRww,17
271
+ cloud_governance-1.1.379.dist-info/RECORD,,