diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-02-15 18:19:51 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-02-15 18:19:51 +0000 |
| commit | 4df3468e920126a3d7b0ac22ab095cc5dbb785bd (patch) | |
| tree | 38fa669101087cfab757e8c149ca07631e5d9364 | |
| parent | 20b65e7845d55cac408fa0d9eddb5209a996076a (diff) | |
| download | puppet-4df3468e920126a3d7b0ac22ab095cc5dbb785bd.tar.gz puppet-4df3468e920126a3d7b0ac22ab095cc5dbb785bd.tar.xz puppet-4df3468e920126a3d7b0ac22ab095cc5dbb785bd.zip | |
Fixing the order of arguments when using admin files with sun packages
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@911 980ebf18-57e1-0310-9a29-db15c13687c0
| -rwxr-xr-x | lib/puppet/type/package/sun.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/puppet/type/package/sun.rb b/lib/puppet/type/package/sun.rb index 3937e2804..0c2b50b9d 100755 --- a/lib/puppet/type/package/sun.rb +++ b/lib/puppet/type/package/sun.rb @@ -6,12 +6,13 @@ module Puppet end #cmd = "pkgadd -d %s -n %s 2>&1" % [self[:source], self[:name]] cmd = ["pkgadd"] - cmd += ["-d", self[:source]] - cmd += ["-n", self[:name]] if self[:answerfile] cmd += ["-a", self[:answerfile]] end + + cmd += ["-d", self[:source]] + cmd += ["-n", self[:name]] cmd << "2>&1" cmd = cmd.join(" ") |
