

def _create(self, filename, namespace=None):
    success = True
    try:
        cmd = ['kubectl.sh', 'create', '-f', filename]
        if namespace:
            cmd.append('--namespace={0}'.format(namespace))
        subprocess.check_call(cmd)
    except subprocess.CalledProcessError as e:
        msg = 'Could not deploy specification: {0} on Kubernetes cluster: {1}'.format(filename, self)
        error_log(self.TAG, msg)
        success = False
    return success

dataset/ETHPy150Open binder-project/binder/binder/cluster.py KubernetesManager._create/VarMisuse@79/125 `e`->`self`