Rename command objects by inserting an underscore between the version part
[pykickstart.git] / pykickstart / commands / device.py
blob13e77379592188618097ae866c32e11e847bc68e
2 # Chris Lumens <clumens@redhat.com>
4 # Copyright 2005, 2006, 2007 Red Hat, Inc.
6 # This software may be freely redistributed under the terms of the GNU
7 # general public license.
9 # You should have received a copy of the GNU General Public License
10 # along with this program; if not, write to the Free Software
11 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
13 import string
15 from pykickstart.base import *
17 class FC3_Device(KickstartCommand):
18 def __init__(self, writePriority=0, device=""):
19 KickstartCommand.__init__(self, writePriority)
20 self.device = device
22 def __str__(self):
23 if self.device != "":
24 return "device %s\n" % self.device
25 else:
26 return ""
28 def parse(self, args):
29 self.device = string.join(args)