koalalorenzo / python-digitalocean

🐍🐳 Python module to manage Digital Ocean droplets
GNU Lesser General Public License v3.0
1.25k stars 300 forks source link

Show Tag.name in the Tag's string representation #340

Closed violetlight closed 3 years ago

violetlight commented 3 years ago

Calls to digitalocean.Manager.get_all_tags() will result in lists that look like [<Tag>, <Tag>, <Tag>, ...], which is not very easy to work with.

This way, Tags will have their name as part of the string representation: [<Tag: foo>, <Tag: bar>, <Tag: baz>, ...].

koalalorenzo commented 3 years ago

Thank you for contributing! :D