We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d2361b commit 347d1c3Copy full SHA for 347d1c3
src/WorkloadManagementScheduler/wlm_scheduler.py
@@ -100,6 +100,9 @@ def get_wlm_config(ruleset, region_name):
100
elif CONFIG_KEY in ruleset and isinstance(ruleset[CONFIG_KEY], basestring):
101
if ruleset[CONFIG_KEY].startswith('s3://'):
102
wlm_config = json.dumps(get_file_contents(ruleset[CONFIG_KEY], region_name))
103
+ else: # use a local json file
104
+ with open(ruleset[CONFIG_KEY]) as user_file:
105
+ wlm_config = user_file.read()
106
else:
107
raise Exception(
108
"Malformed Configuration for Ruleset %s. '%s' must be a json based WLM configuration or an S3 file location" % (
0 commit comments