osi-dump 0.1.3.3.4.1__py3-none-any.whl → 0.1.3.3.4.3__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.
osi_dump/cli.py CHANGED
@@ -166,29 +166,29 @@ def inner_main(file_path: str, output_path: str):
166
166
 
167
167
  connections = get_connections(file_path=file_path)
168
168
 
169
- #_instance(connections=connections, output_path=output_path)
169
+ _instance(connections=connections, output_path=output_path)
170
170
 
171
- #_floating_ip(connections=connections, output_path=output_path)
171
+ _floating_ip(connections=connections, output_path=output_path)
172
172
 
173
- #_volume(connections=connections, output_path=output_path)
173
+ _volume(connections=connections, output_path=output_path)
174
174
 
175
- #_hypervisor(connections=connections, output_path=output_path)
175
+ _hypervisor(connections=connections, output_path=output_path)
176
176
 
177
- #_project(connections=connections, output_path=output_path)
177
+ _project(connections=connections, output_path=output_path)
178
178
 
179
- #_image(connections=connections, output_path=output_path)
179
+ _image(connections=connections, output_path=output_path)
180
180
 
181
- #_flavor(connections=connections, output_path=output_path)
181
+ _flavor(connections=connections, output_path=output_path)
182
182
 
183
183
  _role_assignment(connections=connections, output_path=output_path)
184
184
 
185
- #_load_balancer(connections=connections, output_path=output_path)
185
+ _load_balancer(connections=connections, output_path=output_path)
186
186
 
187
- #_router(connections=connections, output_path=output_path)
187
+ _router(connections=connections, output_path=output_path)
188
188
 
189
- #_external_port(connections=connections, output_path=output_path)
189
+ _external_port(connections=connections, output_path=output_path)
190
190
 
191
- #_network(connections=connections, output_path=output_path)
191
+ _network(connections=connections, output_path=output_path)
192
192
 
193
193
  util.excel_autosize_column(output_path)
194
194
 
@@ -128,11 +128,17 @@ class OpenStackRoleAssignmentImporter(RoleAssignmentImporter):
128
128
  except Exception as e:
129
129
  logger.warning(f"Can not get option")
130
130
 
131
+ try:
132
+ enabled = self.users[user_id]["enabled"]
133
+ except Exception as e:
134
+ logger.warning(f"Can not get enabled")
135
+
131
136
  role_assignment_ret = RoleAssignment(
132
137
  user_id=user_id,
133
138
  user_name=user_name,
134
139
  role_id=role_id,
135
140
  role_name=role_name,
141
+ enabled=enabled,
136
142
  scope=role_assignment["scope"],
137
143
  password_expires_at=password_expires_at,
138
144
  options=options
@@ -14,6 +14,8 @@ class RoleAssignment(BaseModel):
14
14
 
15
15
  role_name: Optional[str]
16
16
 
17
+ enabled: Optional[bool]
18
+
17
19
  options: Optional[dict]
18
20
 
19
21
  password_expires_at: Optional[str]
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: osi-dump
3
- Version: 0.1.3.3.4.1
3
+ Version: 0.1.3.3.4.3
4
4
  Summary: OpenStack information dump tool
5
5
  Author: TVKain
6
6
  License: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  osi_dump/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  osi_dump/__main__.py,sha256=fCVTLFipB-P0872_4j7iOJNNosOMBj3YdHr8TH_fhRY,71
3
- osi_dump/cli.py,sha256=4fMPhzFrVg2qbDolP9LJchsSoOzAuHLTffBNiAiB5eU,6795
3
+ osi_dump/cli.py,sha256=uvVOikUVa4Ly5x9_xORLNsYy3VNt664Iig7nlNIUVrQ,6784
4
4
  osi_dump/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  osi_dump/api/keystone.py,sha256=HgHBJL5c6BTXNhT6pPf2XM2tL7Uu6V4HokXnjHGQ_wg,2111
6
6
  osi_dump/api/neutron.py,sha256=pag_d6MsxA1gOUit4bvVUaTiTrPqLJjwz9KU_QSpxwM,1788
@@ -84,7 +84,7 @@ osi_dump/importer/project/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
84
84
  osi_dump/importer/project/openstack_project_importer.py,sha256=nQRInUb0vtm57dQNLxSoUFnGrNbAytK2Zl0FaUMPqBc,4964
85
85
  osi_dump/importer/project/project_importer.py,sha256=jwEvxteFbSwyWMV8hKAtf5Lo2bZysWkQ1L_NVUE8XOQ,191
86
86
  osi_dump/importer/role_assignment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
87
- osi_dump/importer/role_assignment/openstack_role_assignment_importer.py,sha256=KACI5Yyzk2L3O0yC9MdDpStOOL11EaxTfqD8A0qvZiI,4125
87
+ osi_dump/importer/role_assignment/openstack_role_assignment_importer.py,sha256=9VtGAHpAFi2mGjuP6Oj4t9sGp0-o4YIC7AzY-biPrB4,4303
88
88
  osi_dump/importer/role_assignment/role_assignment_importer.py,sha256=Faorx0qsgdXjv5y2t-7obpV3wFfbmByx_-8b9yBr7L8,228
89
89
  osi_dump/importer/router/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
90
90
  osi_dump/importer/router/openstack_router_importer.py,sha256=T_Wr45nJrCcp2OOdRawmdQkNBDzczA-3DPx9dlewd4g,2781
@@ -103,7 +103,7 @@ osi_dump/model/instance.py,sha256=8puhIKWWfoAaTURXb7XUpjG0lQ4nb0UwrsrTQdDaFbs,63
103
103
  osi_dump/model/load_balancer.py,sha256=3v4j949FM8jAwroWKE1ubaii2eM2XW9DWKl7HjtCdno,571
104
104
  osi_dump/model/network.py,sha256=xwLwayfZ_7Ql8ZDHQhgTFC8LA8yjydtL8uefo-AXMuE,540
105
105
  osi_dump/model/project.py,sha256=S5BtjeMoxZfiJ7z7G_5jYfp5mMTzlPi7DWT5fuBGCTw,749
106
- osi_dump/model/role_assignment.py,sha256=Azz5qYMfoUeot5GTZr7NTz3nYBeuIEXIhx3oWRLR_cg,379
106
+ osi_dump/model/role_assignment.py,sha256=5Bpm-4w5Obxins0DLU8agHIWFDvOn-nX4igP4D5n7Zc,408
107
107
  osi_dump/model/router.py,sha256=K8B6w97DYcFNRPmXN6CAZatm_0XSo2qIFVTvgdMfufY,417
108
108
  osi_dump/model/volume.py,sha256=C1WdZ_GwlL-iaBqrFpgPMfIQZj3ST2KQHzwXceYxRZg,423
109
109
  osi_dump/os_connection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -117,8 +117,8 @@ osi_dump/util/extract_hostname.py,sha256=IpdklGHevmtRu67xeSRE_5n2mvWGI1sDsnJwExo
117
117
  osi_dump/util/openstack_util.py,sha256=_o8LiRmQKtxQ8hU3rbrMNwIAxt0-aWD2rjq-NvVdK9E,1299
118
118
  osi_dump/util/panda_excel.py,sha256=owr8AffIxqN3yY8kIv55Ox4j2dRz7kXZvSZFZeft8dw,734
119
119
  osi_dump/util/validate_dir_path.py,sha256=pL_OrY8JnNwk3vj6Zp6bsZtgHXhszSGRoqIt-1G5S90,507
120
- osi_dump-0.1.3.3.4.1.dist-info/METADATA,sha256=uxG89PHVOyNmjStjLeL3viz1uKNq0UgwxPN4hwpBVvw,685
121
- osi_dump-0.1.3.3.4.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
122
- osi_dump-0.1.3.3.4.1.dist-info/entry_points.txt,sha256=ozm5sIBtXzLv6_FiUe26v1BgA3_xUReGLPhKQKZ56wQ,46
123
- osi_dump-0.1.3.3.4.1.dist-info/top_level.txt,sha256=OtAAwmJfcoPvlw_Cemo_H1aXIGV_7w0O2941KQt6faQ,9
124
- osi_dump-0.1.3.3.4.1.dist-info/RECORD,,
120
+ osi_dump-0.1.3.3.4.3.dist-info/METADATA,sha256=7Xt3CxJ0RbcOJ4Bd-h-ilp8QGXrntqa5i7nd8hupdr8,685
121
+ osi_dump-0.1.3.3.4.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
122
+ osi_dump-0.1.3.3.4.3.dist-info/entry_points.txt,sha256=ozm5sIBtXzLv6_FiUe26v1BgA3_xUReGLPhKQKZ56wQ,46
123
+ osi_dump-0.1.3.3.4.3.dist-info/top_level.txt,sha256=OtAAwmJfcoPvlw_Cemo_H1aXIGV_7w0O2941KQt6faQ,9
124
+ osi_dump-0.1.3.3.4.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5