-
Notifications
You must be signed in to change notification settings - Fork 17
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 GalaxyReportsService crash and remove config_type #116
Conversation
Someone for a review & merge , please ? |
Was it necessary to drop EDIT: Actually, I'll do some testing, maybe it's ok. |
I'm not sure how to reproduce the test failure, it works for me locally. |
It is the trailing slash on the prefix |
1) Line 156 : self.config_type = self.Config.config_type is throwing: "type object 'BaseConfig' has no attribute 'config_type'" , but is ignored by gravity. Thus config file type is not assigned for services but its silent. 2) If any exception occurs in the Service class constructor those are hidden by a not subscriptable exception. Fix 1) by removing config_type form ConfigFile and Service classes, 2) by re-throwing exception in the class constructor.
Dedicated function for absolute path update, check for undefined values and use the property access.
Fix typo.
d1b7caa
to
9f73ede
Compare
Thanks @jvanbraekel and sorry for the wait. |
Hello,
This fix #115.
In addition it also make the ConfigFile class more robust by catching exceptions in the constructor; they were ignored previously.
Finally, it delete the config_type in both ConfigFile and Service classes. Firstly because it wasn't copied properly in the Service class constructor (the error was silent due to the previous issue), secondly because it has no current use.
I tested the supervisor configuration locally but not the systemd one.