Skip to content

Instantly share code, notes, and snippets.

@duanebc
duanebc / warranty.py
Last active November 22, 2017 09:45
Source: https://gist.github.com/leinaddm/1893036 Made a few modifications to use a list of dictionaries where you set your values for: TAG_ID_* HOSTNAME_* and the output will contain: server: HOSTNAME tag: TAG shipped: DATE_SHIPPED warranty expires: DATE_EXPIRES **************************************************
#!/usr/bin/python
# Daniel De Marco - ddm@didiemme.net - 2012-02-23
# suds from https://fedorahosted.org/suds/
import suds
import sys
tags = [
{ 'name': 'HOSTNAME_1', 'tag': 'TAG_ID_1' },