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

influxdb: fix 'database_name' not optional (#35280)

follup up of 168fb07cba
This commit is contained in:
Artem Zinenko 2018-01-24 20:25:12 +05:00 committed by René Moser
parent 5a8c73ad1b
commit 005a8278c6
2 changed files with 1 additions and 2 deletions

View file

@ -28,7 +28,7 @@ class InfluxDb():
self.port = self.params['port']
self.username = self.params['username']
self.password = self.params['password']
self.database_name = self.params['database_name']
self.database_name = self.params.get('database_name')
def check_lib(self):
if not HAS_REQUESTS:

View file

@ -125,7 +125,6 @@ def main():
user_name=dict(required=True, type='str'),
user_password=dict(required=False, type='str', no_log=True),
admin=dict(default='False', type='bool')
)
module = AnsibleModule(
argument_spec=argument_spec,