1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix auto scale create with fix date without recurrence (#47186)

* Fix auto scale create with fix date without  recurrence

* fix indent
This commit is contained in:
Yuwei Zhou 2018-10-18 10:52:30 +08:00 committed by Zim Kalinowski
parent 1be69cd69c
commit 9258ffa478

View file

@ -550,8 +550,9 @@ class AzureRMAutoScale(AzureRMModuleBase):
schedule=(RecurrentSchedule(time_zone=p.get('recurrence_timezone'),
days=p.get('recurrence_days'),
hours=p.get('recurrence_hours'),
minutes=p.get('recurrence_mins')))
if p.get('recurrence_frequency') else None)) for p in self.profiles or []]
minutes=p.get('recurrence_mins'))))
if p.get('recurrence_frequency') and p['recurrence_frequency'] != 'None' else None)
for p in self.profiles or []]
notifications = [AutoscaleNotification(email=EmailNotification(**n),
webhooks=[WebhookNotification(service_uri=w) for w in n.get('webhooks') or []])