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

Can't create config object #3110

Closed
Josh-Klassen-Dejero opened this issue Apr 19, 2023 · 3 comments · Fixed by #3200
Closed

Can't create config object #3110

Josh-Klassen-Dejero opened this issue Apr 19, 2023 · 3 comments · Fixed by #3200
Labels

Comments

@Josh-Klassen-Dejero
Copy link

Much like #2025 the config model is failing to create a new object due to 'name' KeyError

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "docker\models\configs.py", line 10, in __repr__
    return f"<{self.__class__.__name__}: '{self.name}'>"
  File "docker\models\configs.py", line 14, in name
    return self.attrs['Spec']['Name']

This #2793 appears to be the fix that was implemented and should likely be implements for configs as well (if not other models that might have this issue)

@milas milas added the kind/bug label May 8, 2023
@KentaroJay
Copy link

@Josh-Klassen-Dejero
Hello, I would like to contribute to this issue. May I ask you to put more detail to replicate the situation?

  • OS
  • Docker version
  • docker-py version
  • python version
  • files you faced this problem

@Josh-Klassen-Dejero
Copy link
Author

  • Windows 10 Pro 64bit version 21H2 build 19044.2965
  • Docker Desktop 4.19.0
  • docker-py 6.0.1
  • Python 3.8.10
  • it happened for all config files

@MrCapsLock
Copy link

Can confirm. Any update about this problem?

Khushiyant added a commit to Khushiyant/docker-py that referenced this issue Dec 17, 2023
Khushiyant added a commit to Khushiyant/docker-py that referenced this issue Dec 17, 2023
Signed-off-by: Khushiyant <khushiyant2002@gmail.com>
Khushiyant added a commit to Khushiyant/docker-py that referenced this issue Dec 21, 2023
Signed-off-by: Khushiyant <khushiyant2002@gmail.com>
milas pushed a commit that referenced this issue Jan 3, 2024
Closes #3110.

---------

Signed-off-by: Khushiyant <khushiyant2002@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants