Monasca driver poll time type fixed
When custom poll time is specified in CLI monasca
datasource instantiation, a string type is used,
causing eventlet errors.
The needed conversion to int is added in this patch.
Change-Id: I5f4873752f41f7d0a4b0903f1f9e4d41eb05e810
Closes-Bug: 1762586
(cherry picked from commit eabd688366
)
This commit is contained in:
parent
42211b4fa0
commit
190a569100
|
@ -80,7 +80,7 @@ class MonascaDriver(datasource_driver.PollingDataSourceDriver,
|
|||
args['project_name'] = args['tenant_name']
|
||||
|
||||
# set default polling time to 1hr
|
||||
self.poll_time = args.get('poll_time', 3600)
|
||||
self.poll_time = int(args.get('poll_time', 3600))
|
||||
|
||||
session = ds_utils.get_keystone_session(args)
|
||||
|
||||
|
|
Loading…
Reference in New Issue