Framawiki added a project: Google-Code-in-2017. Framawiki added a comment. |
I purpose to add this task as a #google-code-in-2017 one, and I propose to mentor it.
We need to create a new function in pywikibot/version.py that first check the hostname (command hostname -d of similar, in python perhaps using subprocess or a built-in function to see if the script is running in a toollabs host. Then if yes, we can add a more accurate information, using socket.gethostname(), to print the machine name, something like tools-bastion-02 (2nd string).
TASK DETAIL
EMAIL PREFERENCES
To: Framawiki
Cc: Framawiki, Aklapper, pywikibot-bugs-list, jayvdb, Toppole69, Jayprakash12345, Magul, Tbscho, MayS, Mdupont, JJMC89, MtDu, D3r1ck01, Avicennasis, Dalba, Masti, Alchimista, Rxy
Cc: Framawiki, Aklapper, pywikibot-bugs-list, jayvdb, Toppole69, Jayprakash12345, Magul, Tbscho, MayS, Mdupont, JJMC89, MtDu, D3r1ck01, Avicennasis, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs