

def deploy_application(self, rt, name, script, deploy_info=None, credentials=None, content=None, check=True, timeout=DEFAULT_TIMEOUT, async=False):
    data = {
        'name': name,
        'script': script,
        'sec_credentials': credentials,
        'deploy_info': deploy_info,
        'check': check,
    }
    if (content and ('sign' in content)):
        data['sec_sign'] = {
            
        }
        for (cert_hash, signature) in content['sign'].iteritems():
            data['sec_sign'][cert_hash] = signature.encode('hex_codec')
    r = self._post(rt, timeout, async, DEPLOY, data)
    return self.check_response(r)

dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/requests/request_handler.py RequestHandler.deploy_application/original