On Fri, Oct 28, 2011 at 02:37:51PM -0700, Richard Su wrote:
This command failed in testing because under non-production
environment
it was attempting to find rspec-rails, which may not be installed.
---
aeolus-conductor.spec.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/aeolus-conductor.spec.in b/aeolus-conductor.spec.in
index f353ef1..0d9c648 100644
--- a/aeolus-conductor.spec.in
+++ b/aeolus-conductor.spec.in
@@ -235,7 +235,7 @@ touch %{buildroot}%{_localstatedir}/log/%{name}/dbomatic.log
# if the user had broken the symlinks and put data in here, it would have been
# completely ignored *anyway*
# Generate OAuth configuration:
-pushd %{app_root}; rake dc:oauth_keys --trace; popd
+pushd %{app_root}; export RAILS_ENV=production; rake dc:oauth_keys --trace; popd
%{__ln_s} -f %{app_root}/config/environments/development.rb %{_sysconfdir}/%{name}
%{__ln_s} -f %{app_root}/config/environments/production.rb %{_sysconfdir}/%{name}
--
1.7.6.4
ACK (and pushed by rwsu). Not sure this is the right solution but it
appears to work for now.
--Hugh
--
== Hugh Brock, hbrock(a)redhat.com ==
== Engineering Manager, Cloud BU ==
== Aeolus Project: Manage virtual infrastructure across clouds. ==
==
http://aeolusproject.org ==
"I know that you believe you understand what you think I said, but I’m
not sure you realize that what you heard is not what I meant."
--Robert McCloskey