()
| 50 | |
| 51 | |
| 52 | def get_hostname(): |
| 53 | hostname_cmd = ["hostname -I"] |
| 54 | result = subprocess.check_output(hostname_cmd, shell=True) |
| 55 | master_addr = result.decode('utf-8').split()[0] |
| 56 | return master_addr |
| 57 | |
| 58 | |
| 59 | def get_spare_port(args): |
no test coverage detected