nixops-aws icon indicating copy to clipboard operation
nixops-aws copied to clipboard

gatewayId can be null which fails in python

Open Uthar opened this issue 4 years ago • 0 comments

Deploying a vpcRoute without gatewayId set goes through the nix phase, and fails in the python part. I guess it should be checked for null in the nix phase

e.g.

resources.vpcRoutes.myRoute = {
  region = ...
  routeTableId = ...
  destinationCidrBlock = ..
}
=> UnboundLocalError: local variable 'target' referenced before assignment
resources.vpcRoutes.myRoute = {
  region = ...
  routeTableId = ...
  destinationCidrBlock = ..
  gatewayId = ...
}
=> OK

Uthar avatar Sep 29 '21 16:09 Uthar