Commit 2b506da3 authored by Wout De Nolf's avatar Wout De Nolf

[oarresource] remove host (alias for nodes?)

parent 2efb041e
......@@ -52,7 +52,7 @@ class Resource(object):
Custom properties can be defined: for example cpu_vendor=('=',INTEL)"
:param int host: number of hosts to be used (Optional)
:param int host: number of nodes to be used (Optional)
:param int nodes: number of nodes to be used (Optional)
:param int cpu: number of cpu's per node (Optional)
:param int core: number of cores per cpu (Optional)
......@@ -63,7 +63,8 @@ class Resource(object):
:type walltime: timedelta or dict or num
:param int mem_core_mb: required memory per core in MB (Optional)
""" = host
if not nodes:
nodes = host
self.nodes = nodes
self.cpu = cpu
self.core = core
......@@ -93,7 +94,7 @@ class Resource(object):
def cores(self):
n = 1
for m in [, self.nodes, self.cpu, self.core]:
for m in [self.nodes, self.cpu, self.core]:
if m:
n *= m
return n
......@@ -101,8 +102,6 @@ class Resource(object):
def _cli_resource(self):
resources = []
if self.nodes:
if self.cpu:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment