Skip to content

Commit

Permalink
Fixing up the roles array to be a reference
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhjk committed Aug 28, 2009
1 parent 0ba24f4 commit 79ff294
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/chef-install
Expand Up @@ -38,7 +38,7 @@ pod2usage(-exitstatus => 1, -msg => "You must supply -k") unless defined $key;
pod2usage(-exitstatus => 1, -msg => "You must supply -c") unless defined $validation_client_name;
pod2usage(-exitstatus => 1, -msg => "You must supply -s") unless defined $server;

my $ci = Chef::Install->new(platform => $platform, version => $version, url => $server, client => $validation_client_name, key => $key, roles => $roles);
my $ci = Chef::Install->new(platform => $platform, version => $version, url => $server, client => $validation_client_name, key => $key, roles => \@roles);
$ci->go;

exit 0;
Expand Down
2 changes: 1 addition & 1 deletion lib/Chef/Install.pm
Expand Up @@ -242,7 +242,7 @@ sub go {
print "* First Chef Client Run\n";
$self->module->run_chef;
print "* Adding roles\n";
foreach my $role ( $self->roles ) {
foreach my $role ( @{$self->roles} ) {
Chef::Install::Utils->run_command( "command" => "env OPSCODE_USER="
. $self->client
. " OPSCODE_KEY="
Expand Down

0 comments on commit 79ff294

Please sign in to comment.