We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4c90dd9 + ea53097 commit 13b5effCopy full SHA for 13b5eff
1 file changed
ocp_resources/infrastructure.py
@@ -0,0 +1,18 @@
1
+from ocp_resources.resource import Resource
2
+
3
4
+class Infrastructure(Resource):
5
+ """
6
+ Infrastructure object.
7
8
9
+ api_group = Resource.ApiGroup.CONFIG_OPENSHIFT_IO
10
11
+ class Type:
12
+ BARE_METAL = "BareMetal"
13
+ AWS = "AWS"
14
+ OPENSTACK = "OpenStack"
15
16
+ @property
17
+ def platform(self):
18
+ return self.instance.status.platformStatus.type
0 commit comments