Create module mssql_query Error port

16 views
Skip to first unread message

Karther

unread,
Jan 29, 2020, 8:36:36 AM1/29/20
to Ansible Project
Hello,

I have create this module mssql_query.py in ansible in /library/mssql_query.py :


I have this error :

The error was: TypeError: connect() got an unexpected keyword argument 'port'

when i execut this task :

- local_action:
        module: mssql_query
        login_host: my_host
        login_user: my_user
        login_password: my_password
        query: SELECT * FROM dbo.my_table_1
        db: my_database
        autocommit: True
        as_dict: false
    delegate_to: localhost

Like without port: 1433 i have the same error....

I don't know why ?

Can you help me please !!

Best Regards,

Karther



Stefan Hornburg (Racke)

unread,
Jan 29, 2020, 8:42:57 AM1/29/20
to ansible...@googlegroups.com
This is now really off topic, but I suppose port should be an integer instead of a string.

Regards
Racke

>
> Best Regards,
>
> Karther
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/2e57a3d2-2f16-49b7-9799-aa7e7667f192%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/2e57a3d2-2f16-49b7-9799-aa7e7667f192%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

signature.asc

Karther

unread,
Jan 30, 2020, 3:54:42 AM1/30/20
to Ansible Project
Hello,

I have the same error like with port int in my programme python 

The creation module Ansible in well in contexte "Ansible project" ... :/

Thanks you

Karther
Reply all
Reply to author
Forward
0 new messages