aboutsummaryrefslogtreecommitdiff
path: root/wa/framework/configuration/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'wa/framework/configuration/core.py')
-rw-r--r--wa/framework/configuration/core.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wa/framework/configuration/core.py b/wa/framework/configuration/core.py
index be409ecf..05a7f3db 100644
--- a/wa/framework/configuration/core.py
+++ b/wa/framework/configuration/core.py
@@ -144,12 +144,14 @@ class LoggingConfig(dict):
def to_pod(self):
return self
+
def expanded_path(path):
"""
Ensure that the provided path has been expanded if applicable
"""
return os.path.expanduser(str(path))
+
def get_type_name(kind):
typename = str(kind)
if '\'' in typename:
@@ -377,12 +379,11 @@ class Configuration(object):
name))
try:
self.configuration[name].set_value(self, value,
- check_mandatory=check_mandatory)
+ check_mandatory=check_mandatory)
except (TypeError, ValueError, ConfigError) as e:
msg = 'Invalid value "{}" for "{}": {}'
raise ConfigError(msg.format(value, name, e))
-
def update_config(self, values, check_mandatory=True):
for k, v in values.items():
self.set(k, v, check_mandatory=check_mandatory)
@@ -899,7 +900,6 @@ class JobSpec(Configuration):
self.label = self.workload_name
-
# This is used to construct the list of Jobs WA will run
class JobGenerator(object):