rel-eng/packages/spacecmd | 2 +-
spacecmd/spacecmd.spec | 6 +++++-
spacecmd/src/lib/kickstart.py | 10 +++++++++-
3 files changed, 15 insertions(+), 3 deletions(-)
New commits:
commit a6f9fecf4a9a8eb5f14924d8e134f907b66e163a
Author: Stephen Herr <sherr(a)redhat.com>
Date: Thu Apr 5 14:53:04 2012 -0400
Automatic commit of package [spacecmd] release [1.8.3-1].
diff --git a/rel-eng/packages/spacecmd b/rel-eng/packages/spacecmd
index 8aee942..308f552 100644
--- a/rel-eng/packages/spacecmd
+++ b/rel-eng/packages/spacecmd
@@ -1 +1 @@
-1.8.2-1 spacecmd/
+1.8.3-1 spacecmd/
diff --git a/spacecmd/spacecmd.spec b/spacecmd/spacecmd.spec
index ca8a761..dbdf696 100644
--- a/spacecmd/spacecmd.spec
+++ b/spacecmd/spacecmd.spec
@@ -4,7 +4,7 @@
%endif
Name: spacecmd
-Version: 1.8.2
+Version: 1.8.3
Release: 1%{?dist}
Summary: Command-line interface to Spacewalk and Satellite servers
@@ -61,6 +61,10 @@ touch %{buildroot}/%{python_sitelib}/spacecmd/__init__.py
%doc %{_mandir}/man1/spacecmd.1.gz
%changelog
+* Thu Apr 05 2012 Stephen Herr <sherr(a)redhat.com> 1.8.3-1
+- 809905 - add option to allow templating for spacecmd kickstarting
+ (sherr(a)redhat.com)
+
* Thu Mar 29 2012 Steven Hardy <shardy(a)redhat.com> 1.8.2-1
- spacecmd : softwarechannel_clone avoid ISE on duplicate name
(shardy(a)redhat.com)
commit b9a232dd1f79ab46e23d0654189bf4fd0009f5fb
Author: Stephen Herr <sherr(a)redhat.com>
Date: Thu Apr 5 14:51:49 2012 -0400
809905 - add option to allow templating for spacecmd kickstarting
diff --git a/spacecmd/src/lib/kickstart.py b/spacecmd/src/lib/kickstart.py
index 935a23f..fb51df5 100644
--- a/spacecmd/src/lib/kickstart.py
+++ b/spacecmd/src/lib/kickstart.py
@@ -1638,6 +1638,7 @@ def do_kickstart_addscript(self, args):
options = [ Option('-p', '--profile', action='store'),
Option('-e', '--execution-time', action='store'),
Option('-c', '--chroot', action='store_true'),
+ Option('-t', '--template', action='store_true'),
Option('-i', '--interpreter', action='store'),
Option('-f', '--file', action='store') ]
@@ -1668,6 +1669,11 @@ def do_kickstart_addscript(self, args):
else:
options.chroot = True
+ if re.match('n', options.template, re.I):
+ options.template = False
+ else:
+ options.template = True
+
if re.match('pre', options.execution_time, re.I):
options.execution_time = 'pre'
else:
@@ -1698,6 +1704,7 @@ def do_kickstart_addscript(self, args):
print 'Profile Name: %s' % options.profile
print 'Execution Time: %s' % options.execution_time
print 'Chroot: %s' % options.chroot
+ print 'Template: %s' % options.template
print 'Interpreter: %s' % options.interpreter
print 'Contents:'
print options.contents
@@ -1709,7 +1716,8 @@ def do_kickstart_addscript(self, args):
options.contents,
options.interpreter,
options.execution_time,
- options.chroot)
+ options.chroot,
+ options.template)
####################