Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Proper way to access __dict__ #102

Open
ahabers opened this issue Dec 13, 2016 · 1 comment
Open

Proper way to access __dict__ #102

ahabers opened this issue Dec 13, 2016 · 1 comment

Comments

@ahabers
Copy link

ahabers commented Dec 13, 2016

Hi,

Is there a preferred method to access key/values in the dict object for API class object?

@joar
Copy link

joar commented Aug 14, 2017

I assume obj.obj, e.g.:

pod = pykube.Pod.objects(api).get_or_none(name='foo')
pod.obj['metadata']['selfLink']

is the correct way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants