Browse files

[aws_bootstrap] 'bosh aws bootstrap bosh' check for release named 'bosh'

  • Loading branch information...
1 parent b1b6d50 commit c5c435d27ed7566092f20ebf8ff1060cb7f9cf07 @oppegard oppegard committed with Gary Liu Apr 3, 2013
View
4 bosh_aws_bootstrap/lib/bosh_aws_bootstrap/bosh_bootstrap.rb
@@ -20,8 +20,8 @@ def validate_requirements(release_path)
end
end
- if !director.list_releases.empty?
- raise BootstrapError, "This target already has a release."
+ if director.list_releases.detect { |r| r['name'] == 'bosh' }
+ raise BootstrapError, "This target already has a `bosh' release."
end
existing_deployments = director.list_deployments.map { |deployment| deployment["name"] }
View
2 bosh_aws_bootstrap/spec/functional/bootstrap_spec.rb
@@ -116,7 +116,7 @@
it "raises an error" do
expect do
aws.bootstrap_bosh(bosh_repository_path)
- end.to raise_error(/This target already has a release./)
+ end.to raise_error(/This target already has a `bosh' release./)
end
end

0 comments on commit c5c435d

Please sign in to comment.