Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ephracis committed May 30, 2019
1 parent 3533f97 commit 4115406
Showing 1 changed file with 171 additions and 171 deletions.
342 changes: 171 additions & 171 deletions modules/foreman_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,180 +194,181 @@

# List of allowed timezones
timezone_list = [
'International Date Line West',
'American Samoa',
'Midway Island',
'Hawaii',
'Alaska',
'Pacific Time (US & Canada)',
'Tijuana',
'Arizona',
'Chihuahua',
'Mazatlan',
'Mountain Time (US & Canada)',
'Central America',
'Central Time (US & Canada)',
'Guadalajara',
'Mexico City',
'Monterrey',
'Saskatchewan',
'Bogota',
'Eastern Time (US & Canada)',
'Indiana (East)',
'Lima',
'Quito',
'Atlantic Time (Canada)',
'Caracas',
'Georgetown',
'La Paz',
'Puerto Rico',
'Santiago',
'Newfoundland',
'Brasilia',
'Buenos Aires',
'Greenland',
'Montevideo',
'Mid-Atlantic',
'Azores',
'Cape Verde Is.',
'Dublin',
'Edinburgh',
'Lisbon',
'London',
'Monrovia',
'UTC',
'Amsterdam',
'Belgrade',
'Berlin',
'Bern',
'Bratislava',
'Brussels',
'Budapest',
'Casablanca',
'Copenhagen',
'Ljubljana',
'Madrid',
'Paris',
'Prague',
'Rome',
'Sarajevo',
'Skopje',
'Stockholm',
'Vienna',
'Warsaw',
'West Central Africa',
'Zagreb',
'Zurich',
'Athens',
'Bucharest',
'Cairo',
'Harare',
'Helsinki',
'Jerusalem',
'Kaliningrad',
'Kyiv',
'Pretoria',
'Riga',
'Sofia',
'Tallinn',
'Vilnius',
'Baghdad',
'Istanbul',
'Kuwait',
'Minsk',
'Moscow',
'Nairobi',
'Riyadh',
'St. Petersburg',
'Tehran',
'Abu Dhabi',
'Baku',
'Muscat',
'Samara',
'Tbilisi',
'Volgograd',
'Yerevan',
'Kabul',
'Ekaterinburg',
'Islamabad',
'Karachi',
'Tashkent',
'Chennai',
'Kolkata',
'Mumbai',
'New Delhi',
'Sri Jayawardenepura',
'Kathmandu',
'Almaty',
'Astana',
'Dhaka',
'Urumqi',
'Rangoon',
'Bangkok',
'Hanoi',
'Jakarta',
'Krasnoyarsk',
'Novosibirsk',
'Beijing',
'Chongqing',
'Hong Kong',
'Irkutsk',
'Kuala Lumpur',
'Perth',
'Singapore',
'Taipei',
'Ulaanbaatar',
'Osaka',
'Sapporo',
'Seoul',
'Tokyo',
'Yakutsk',
'Adelaide',
'Darwin',
'Brisbane',
'Canberra',
'Guam',
'Hobart',
'Melbourne',
'Port Moresby',
'Sydney',
'Vladivostok',
'Magadan',
'New Caledonia',
'Solomon Is.',
'Srednekolymsk',
'Auckland',
'Fiji',
'Kamchatka',
'Marshall Is.',
'Wellington',
'Chatham Is.',
'Nuku'alofa',
'Samoa',
'Tokelau Is.',
'International Date Line West',
'American Samoa',
'Midway Island',
'Hawaii',
'Alaska',
'Pacific Time (US & Canada)',
'Tijuana',
'Arizona',
'Chihuahua',
'Mazatlan',
'Mountain Time (US & Canada)',
'Central America',
'Central Time (US & Canada)',
'Guadalajara',
'Mexico City',
'Monterrey',
'Saskatchewan',
'Bogota',
'Eastern Time (US & Canada)',
'Indiana (East)',
'Lima',
'Quito',
'Atlantic Time (Canada)',
'Caracas',
'Georgetown',
'La Paz',
'Puerto Rico',
'Santiago',
'Newfoundland',
'Brasilia',
'Buenos Aires',
'Greenland',
'Montevideo',
'Mid-Atlantic',
'Azores',
'Cape Verde Is.',
'Dublin',
'Edinburgh',
'Lisbon',
'London',
'Monrovia',
'UTC',
'Amsterdam',
'Belgrade',
'Berlin',
'Bern',
'Bratislava',
'Brussels',
'Budapest',
'Casablanca',
'Copenhagen',
'Ljubljana',
'Madrid',
'Paris',
'Prague',
'Rome',
'Sarajevo',
'Skopje',
'Stockholm',
'Vienna',
'Warsaw',
'West Central Africa',
'Zagreb',
'Zurich',
'Athens',
'Bucharest',
'Cairo',
'Harare',
'Helsinki',
'Jerusalem',
'Kaliningrad',
'Kyiv',
'Pretoria',
'Riga',
'Sofia',
'Tallinn',
'Vilnius',
'Baghdad',
'Istanbul',
'Kuwait',
'Minsk',
'Moscow',
'Nairobi',
'Riyadh',
'St. Petersburg',
'Tehran',
'Abu Dhabi',
'Baku',
'Muscat',
'Samara',
'Tbilisi',
'Volgograd',
'Yerevan',
'Kabul',
'Ekaterinburg',
'Islamabad',
'Karachi',
'Tashkent',
'Chennai',
'Kolkata',
'Mumbai',
'New Delhi',
'Sri Jayawardenepura',
'Kathmandu',
'Almaty',
'Astana',
'Dhaka',
'Urumqi',
'Rangoon',
'Bangkok',
'Hanoi',
'Jakarta',
'Krasnoyarsk',
'Novosibirsk',
'Beijing',
'Chongqing',
'Hong Kong',
'Irkutsk',
'Kuala Lumpur',
'Perth',
'Singapore',
'Taipei',
'Ulaanbaatar',
'Osaka',
'Sapporo',
'Seoul',
'Tokyo',
'Yakutsk',
'Adelaide',
'Darwin',
'Brisbane',
'Canberra',
'Guam',
'Hobart',
'Melbourne',
'Port Moresby',
'Sydney',
'Vladivostok',
'Magadan',
'New Caledonia',
'Solomon Is.',
'Srednekolymsk',
'Auckland',
'Fiji',
'Kamchatka',
'Marshall Is.',
'Wellington',
'Chatham Is.',
'Nuku'alofa',
'Samoa',
'Tokelau Is.',
]

# List of allowed locales
locale_list = [
'ca',
'de',
'en',
'en_GB',
'es',
'fr',
'gl',
'it',
'ja',
'ko',
'nl_NL',
'pl',
'pt_BR',
'ru',
'sv_SE',
'zh_CN',
'zh_TW',
'ca',
'de',
'en',
'en_GB',
'es',
'fr',
'gl',
'it',
'ja',
'ko',
'nl_NL',
'pl',
'pt_BR',
'ru',
'sv_SE',
'zh_CN',
'zh_TW',
]


def main():
module = ForemanEntityApypieAnsibleModule(
argument_spec=dict(
Expand Down Expand Up @@ -422,10 +423,9 @@ def main():

check_missing = None
if 'password' in entity_dict:
check_missing = ['password']
check_missing = ['password']

changed = module.ensure_resource_state('users', entity_dict, entity, state,
check_missing=check_missing)
changed = module.ensure_resource_state('users', entity_dict, entity, state, check_missing=check_missing)

module.exit_json(changed=changed, entity_dict=entity_dict)

Expand Down

0 comments on commit 4115406

Please sign in to comment.