We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d2361b commit d853493Copy full SHA for d853493
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 json file in the lambda code dir
104
+ with open(ruleset[CONFIG_KEY]) as config_file:
105
+ wlm_config = config_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