mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-03-26 19:03:16 +00:00
cleanup(inventory): Rename default hostname method
Rename method get_default_host_name to get_default_hostname. Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
@@ -251,7 +251,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
||||
snake_case_pattern = re_compile(r"(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])")
|
||||
|
||||
@staticmethod
|
||||
def get_default_host_name(host: str) -> str:
|
||||
def get_default_hostname(host: str) -> str:
|
||||
"""
|
||||
get_default_host_name strips URL schemes from the host name and
|
||||
replaces invalid characters.
|
||||
|
||||
Reference in New Issue
Block a user