Skip to content
Snippets Groups Projects
Commit 0b9373b1 authored by Juraj Paluba's avatar Juraj Paluba
Browse files

feat: add get_private_ip to cloud client base

Terraform stores IP details about instance in different format for
OpenStack and AWS.
parent a6be089f
Branches
Tags
1 merge request!13feat: add get_private_ip to cloud client base
Pipeline #537361 passed
......@@ -9,6 +9,18 @@ class KypoCloudClientBase(ABC):
"""
Base class for KYPO cloud clients.
"""
@abstractmethod
@staticmethod
def get_private_ip(instance_attrs: dict) -> str:
"""
Get IP address of a Terraform instance.
:param instance_attrs: Terraform instance attributes
:return: IP address
"""
pass
@abstractmethod
def get_terraform_provider(self) -> str:
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment