Source code for reemote.facts.server.get_hostname

# Copyright (c) 2025 Kim Jarvis TPF Software Services S.A. kim.jarvis@tpfsystems.com 
# This software is licensed under the MIT License. See the LICENSE file for details.
#

[docs] class Get_Hostname: """ Returns the current hostname of the server. **Examples:** .. code:: python yield Get_hostname() """ def execute(self): from reemote.operations.server.shell import Shell r0 = yield Shell("uname -n")