mirror of
https://github.com/ansible/awx.git
synced 2026-03-17 17:07:33 -02:30
Fix syntax bug that came from fixing sanity tests (#13473)
This commit is contained in:
@@ -147,34 +147,34 @@ class LookupModule(LookupBase):
|
|||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
if LIBRARY_IMPORT_ERROR:
|
if LIBRARY_IMPORT_ERROR:
|
||||||
raise_from(AnsibleError('{0}'.format(LIBRARY_IMPORT_ERROR)), LIBRARY_IMPORT_ERROR)
|
raise_from(AnsibleError('{0}'.format(LIBRARY_IMPORT_ERROR)), LIBRARY_IMPORT_ERROR)
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
self.frequencies = {
|
self.frequencies = {
|
||||||
'none': rrule.DAILY,
|
'none': rrule.DAILY,
|
||||||
'minute': rrule.MINUTELY,
|
'minute': rrule.MINUTELY,
|
||||||
'hour': rrule.HOURLY,
|
'hour': rrule.HOURLY,
|
||||||
'day': rrule.DAILY,
|
'day': rrule.DAILY,
|
||||||
'week': rrule.WEEKLY,
|
'week': rrule.WEEKLY,
|
||||||
'month': rrule.MONTHLY,
|
'month': rrule.MONTHLY,
|
||||||
}
|
}
|
||||||
|
|
||||||
self.weekdays = {
|
self.weekdays = {
|
||||||
'monday': rrule.MO,
|
'monday': rrule.MO,
|
||||||
'tuesday': rrule.TU,
|
'tuesday': rrule.TU,
|
||||||
'wednesday': rrule.WE,
|
'wednesday': rrule.WE,
|
||||||
'thursday': rrule.TH,
|
'thursday': rrule.TH,
|
||||||
'friday': rrule.FR,
|
'friday': rrule.FR,
|
||||||
'saturday': rrule.SA,
|
'saturday': rrule.SA,
|
||||||
'sunday': rrule.SU,
|
'sunday': rrule.SU,
|
||||||
}
|
}
|
||||||
|
|
||||||
self.set_positions = {
|
self.set_positions = {
|
||||||
'first': 1,
|
'first': 1,
|
||||||
'second': 2,
|
'second': 2,
|
||||||
'third': 3,
|
'third': 3,
|
||||||
'fourth': 4,
|
'fourth': 4,
|
||||||
'last': -1,
|
'last': -1,
|
||||||
}
|
}
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def parse_date_time(date_string):
|
def parse_date_time(date_string):
|
||||||
|
|||||||
Reference in New Issue
Block a user