Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build_values mapping check #17

Merged
merged 1 commit into from
Aug 10, 2018
Merged

Conversation

leafty
Copy link
Contributor

@leafty leafty commented Aug 10, 2018

The yaml parser creates objects which do not have dict as a parent class, but collections.abc.MutableMapping.

See source for ruamel.yaml.comments.CommentedMap: https://bitbucket.org/ruamel/yaml/src/c177aa5d95fd92911eba4b40d60ac20b4e940105/comments.py?at=default&fileviewer=file-view-default#comments.py-595

@consideRatio
Copy link
Member

@betatim @leafty #18 :D We almost have the exact same PRs

I figure we should use MutableMapping, as we are modifying the object we check for being either Mapping or MutableMapping, so if it isn't mutable we fail later anyhow!

I'm closing my PR.

@minrk minrk merged commit a09b632 into jupyterhub:master Aug 10, 2018
consideRatio added a commit to consideRatio/zero-to-jupyterhub-k8s that referenced this pull request Aug 10, 2018
Fixes jupyterhub#831 thanks to jupyterhub/chartpress#17
merged and released with chartpress 0.2.1.
@leafty leafty deleted the fix-dict-check branch August 10, 2018 12:02
@leafty leafty restored the fix-dict-check branch August 10, 2018 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants