[autoscaler] hotfix - swallowed error for missing yaml (#10212)

This commit is contained in:
Richard Liaw
2020-08-19 20:02:56 -07:00
committed by GitHub
parent 9ff687c093
commit 2fd59de05d
+3
View File
@@ -136,10 +136,13 @@ def create_or_update_cluster(config_file: str,
cli_logger.abort(
"Provided cluster configuration file ({}) does not exist",
cf.bold(config_file))
raise
except yaml.parser.ParserError as e:
handle_yaml_error(e)
raise
except yaml.scanner.ScannerError as e:
handle_yaml_error(e)
raise
# todo: validate file_mounts, ssh keys, etc.