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 for issue14: https://github.com/tcalmant/ipopo/issues/95 #96

Merged
merged 2 commits into from
Apr 26, 2018

Conversation

scottslewis
Copy link
Collaborator

Fix for issue14...support standard property name for framework.uid of 'org.osgi.framework.uuid'

@coveralls
Copy link

coveralls commented Apr 25, 2018

Coverage Status

Coverage increased (+0.04%) to 88.457% when pulling ada7a52 on issue14 into 4602389 on master.

Copy link
Owner

@tcalmant tcalmant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me but a normalization to ensure a string UID is missing

# Normalize the UID: it must be a string
self.__properties[FRAMEWORK_UID] = str(framework_uid)
self.__properties[FRAMEWORK_UID] = framework_uid
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

framework_uid should be converted to str before this line, to ensure that line 629 didn't return something else (like an integer or UUID object).
This would remove the need to call str() on line 631, and ensure the type on a single line

@scottslewis
Copy link
Collaborator Author

Added string normalization.

@tcalmant tcalmant merged commit 633eed3 into master Apr 26, 2018
@tcalmant tcalmant deleted the issue14 branch May 12, 2018 11:45
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