Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following on from the welcome changes in #697 it seems the vpc resources are a bit broken downstream and one of the issues originates here.
DiffEngineResourceState is the base state class for custom resources utilising the new diff engine. When deploying (or planning) a deployment of this type of resource the diff engine gets initialised with
nixops/nixops/resources/__init__.py
Line 346 in 0330ead
The issue is that
defn.config
here is a ResourceOptions subclass instance. Eventually a diff gets constructed with this object when it requires a dictnixops/nixops/diff.py
Line 59 in 0330ead
and chaos soon ensues, causing the following error (nixops-aws vpc example) deploying affected resources.
It's a simple fix, and I'd like to get this merged because I'm using the diff engine in a nixops plugin I am writing for hetzner cloud.
Thanks!