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.port = self.params['port']
self.username = self.params['username'] self.username = self.params['username']
self.password = self.params['password'] self.password = self.params['password']
self.database_name = self.params['database_name'] self.database_name = self.params.get('database_name')
def check_lib(self): def check_lib(self):
if not HAS_REQUESTS: if not HAS_REQUESTS:

View file

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