| Framawiki updated the task description. (Show Details) |
CHANGES TO TASK DESCRIPTION
Of course, don't hesitate to ask that a comment be executed in the servers concerned, in order to know the result or to test the code!
...
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 ToolForge 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).Of course, don't hesitate to ask that a comment be executed in the servers concerned, in order to know the result or to test the code!
TASK DETAIL
EMAIL PREFERENCES
To: Framawiki
Cc: TerraCodes, Dvorapa, zhuyifei1999, Framawiki, Aklapper, pywikibot-bugs-list, jayvdb, Toppole69, Mine0901, Soteriaspace, RazeSoldier, Jayprakash12345, JakeTheDeveloper, Magul, Tbscho, MayS, Zoranzoki21, Beeyan, Mdupont, JJMC89, MtDu, D3r1ck01, Avicennasis, MuhammadShuaib, SimmeD, Dalba, Masti, Alchimista, Rxy
Cc: TerraCodes, Dvorapa, zhuyifei1999, Framawiki, Aklapper, pywikibot-bugs-list, jayvdb, Toppole69, Mine0901, Soteriaspace, RazeSoldier, Jayprakash12345, JakeTheDeveloper, Magul, Tbscho, MayS, Zoranzoki21, Beeyan, Mdupont, JJMC89, MtDu, D3r1ck01, Avicennasis, MuhammadShuaib, SimmeD, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
