[autoscaler] Fix logging regression (#10280)

This commit is contained in:
Richard Liaw
2020-08-24 14:25:12 -07:00
committed by GitHub
parent 05c103af94
commit 6dc22a6d68
+3 -2
View File
@@ -487,8 +487,9 @@ class StandardAutoscaler:
resources: Either a list of resource bundles or a single resource
demand dictionary.
"""
logger.info(
"StandardAutoscaler: resource_requests={}".format(resources))
if resources:
logger.info(
"StandardAutoscaler: resource_requests={}".format(resources))
if isinstance(resources, list):
self.resource_demand_vector = resources
else: