This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
import sys | |
import libvirt | |
import guestfs | |
from lxml import etree | |
if (len(sys.argv) != 3): | |
sys.exit('Usage: # sudo python %s old_domain new_domain' % sys.argv[0]) | |
old_domain = sys.argv[1] |