

def _build_uri(self):
    start = ('http://' if (self.client.port is 80) else 'https://')
    return ((((start + self.client.host) + ':') + str(self.client.port)) + '/api/')

dataset/ETHPy150Open StackStorm/st2contrib/packs/octopusdeploy/sensors/lib/sensors.py OctopusDeploySensor._build_uri/original