Hadron / carthage

Carthage is an Infrastructure as Code (IAC) framework
Other
7 stars 4 forks source link

Move resolution of outer_key so that it can be found (as None) #18

Closed kdienes closed 2 years ago

kdienes commented 2 years ago

I'm not entirely confident this is what we want, but I am confident that we can do better than

  File "/root/project/carthage/carthage/modeling/implementation.py", line 484, in _integrate_containment                                                                                                                   
    propagate_provider(k, v, options)                                                                                                                                                                                      
  File "/root/project/carthage/carthage/modeling/implementation.py", line 436, in propagate_provider                                                                                                                       
    outer_constraints = outer_key.constraints                                                                                                                                                                              
NameError: free variable 'outer_key' referenced before assignment in enclosing scope                                                                                                                                       
hartmans commented 2 years ago

Please note that this Fixes GH-3 with that lgtm