[katello-devel] Announcing Katello 1.1 RC1

Miroslav Suchy msuchy at redhat.com
Fri Oct 12 17:44:03 UTC 2012


On 12.10.2012 17:56, Lukas Zapletal wrote:
> add product to ak
> activation_key update --add_subscription= --name=ak1_xj1yX0rFHXpw
> --environment=env_rhsm_xj1yX0rFHXpw --org=org_rhsm_xj1yX0rFHXpw
> undefined method `[]' for nil:NilClass
>
> we will fix this on Monday

I thought I got it with:

diff --git a/src/app/models/glue/candlepin/pool.rb 
b/src/app/models/glue/candlepin/pool.rb
index ac5b066..a62295c 100644
--- a/src/app/models/glue/candlepin/pool.rb
+++ b/src/app/models/glue/candlepin/pool.rb
@@ -53,7 +53,7 @@ module Glue::Candlepin::Pool
      end

      def organization
-      Organization.find_by_name(owner["key"])
+      Organization.find_by_name(@owner["key"])
      end

      # if defined +load_remote_data+ will be used by +lazy_accessors+

but even with this patch (which I believe should be applied anyway) it 
is still failing with the same error. :(

Mirek




More information about the katello-devel mailing list