Exemple #1
0
 def run(self):
     cmdline = "virsh"
     cmdline += " %s" % utils.escape(str(self.get("subcmd")))
     options = self.get("options")
     if options is not None:
         for opt in options:
             cmdline += " --%s" % utils.escape(str(opt))
     self.res = utils.run(cmdline)
Exemple #2
0
 def run(self):
     cmdline = os.path.join(self.provider.path, 'pyramid')
     cmdline += ' %s' % utils.escape(str(self.get('option')))
     self.res = utils.run(cmdline)
Exemple #3
0
 def run(self):
     cmdline = './pyramid'
     cmdline += ' %s' % utils.escape(str(self.get('option')))
     self.res = utils.run(cmdline)