def job_binary_create(self, context, values):

        values = copy.deepcopy(values)
        values = _apply_defaults(values, JOB_BINARY_DEFAULTS)
        values['tenant_id'] = context.tenant_id
        # if credentials are being passed in, we use the key_manager
        # to store the password.
        if values.get('extra') and values['extra'].get('password'):
            values['extra']['password'] = key_manager.store_secret(
                values['extra']['password'], context)
        return self.db.job_binary_create(context, values)
Create a JobBinary from the values dictionary.
dataset/ETHPy150Open openstack/sahara/sahara/conductor/manager.py/ConductorManager.job_binary_create