def url_from_apihost()

in src/openwhisk/openwhisk.py [0:0]


    def url_from_apihost(self, apihost):
        if apihost is None:
            return apihost
        url = apihost+'/api/v1/'

        # if apihost does not the protocol, assume HTTPS
        if not url.startswith('http') :
            url = 'https://' + url

        return url