

def invoke_detect_ip():
    try:
        ip = check_output(['/opt/mesosphere/bin/detect_ip']).strip().decode('utf-8')
    except CalledProcessError as e:
        print('check_output exited with {}'.format(ip))
        sys.exit(1)
    try:
        inet_aton(ip)
        return ip
    except socket_error as e:
        print('inet_aton exited with {}. {} is not a valid IPv4 address'.format(e, ip))
        sys.exit(1)

dataset/ETHPy150Open dcos/dcos/packages/exhibitor/extra/start_exhibitor.py invoke_detect_ip/VarMisuse@45/78 `e`->`ip`