clabe.utils ¶
get_computer_name ¶
get_computer_name() -> str
is_this_computer ¶
Returns whether a computer name, e.g. a rig's computer_name, names this machine.
The comparison ignores case and any domain suffix, so RIG-A and rig-a.corp.org both match rig-a.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The computer name to check. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if the name is this machine's. |