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

mgr-sync returns General error: can't set attribute #8473

Open
pj256 opened this issue Mar 18, 2024 · 1 comment
Open

mgr-sync returns General error: can't set attribute #8473

pj256 opened this issue Mar 18, 2024 · 1 comment
Labels
bug Something isn't working P5

Comments

@pj256
Copy link

pj256 commented Mar 18, 2024

Problem description

mgr-sync reports "General error: can't set attribute" when run.

mgr-sync -v -d3 list channels

General error: can't set attribute
Traceback (most recent call last):
File "/usr/sbin/mgr-sync", line 27, in
sys.exit(MgrSync().run(options))
File "/usr/lib/python3.6/site-packages/spacewalk/susemanager/mgr_sync/mgr_sync.py", line 60, in init
self.config.port = 443
AttributeError: can't set attribute

This was introduced in 5ba17e7

This is a simple fix. It occurs because the port does not have a @port.setter defined in /usr/lib/python3.6/site-packages/spacewalk/susemanager/mgr_sync/config.py . For example, add the below to /usr/lib/python3.6/site-packages/spacewalk/susemanager/mgr_sync/config.py to fix:

@port.setter  # pylint: disable=E1101
def port(self, value):  # pylint: disable=E0102
    self._config[Config.PORT] = value

Steps to reproduce

...

Uyuni version

2024.02-230900.213.1.uyuni3

Uyuni proxy version (if used)

No response

Useful logs

No response

Additional information

No response

@pj256 pj256 added bug Something isn't working P5 labels Mar 18, 2024
@avshiliaev
Copy link
Contributor

@cbosdo @meaksh please take a look. 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P5
Projects
None yet
Development

No branches or pull requests

2 participants