Skip to content

context

drunc.controller.interface.context

Classes

ControllerContext()

Bases: ShellContext

Source code in drunc/controller/interface/context.py
def __init__(self):
    self.status_receiver = None
    self.took_control = False
    super(ControllerContext, self).__init__()
Methods:
get_endpoint_display_host_overrides()

Return display hostname overrides for status-table rendering.

Returns an empty dict because this context connects directly to a controller without a process manager, so no per-process hostname metadata is available.

Returns:

Type Description
dict[str, str]

dict[str, str]: Mapping of {process_name: hostname}. Always empty for this context.

Source code in drunc/controller/interface/context.py
def get_endpoint_display_host_overrides(self) -> dict[str, str]:
    """
    Return display hostname overrides for status-table rendering.

    Returns an empty dict because this context connects directly to a
    controller without a process manager, so no per-process hostname
    metadata is available.

    Returns:
        dict[str, str]: Mapping of {process_name: hostname}.
                        Always empty for this context.
    """
    return {}

Functions: