Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

[Bug] ServiceNowEntry._get_value returning None when value exists #46

Open
michaeldcanady opened this issue May 8, 2023 · 0 comments
Open

Comments

@michaeldcanady
Copy link
Owner

ServiceNowEntry._get_value is returning None when actual_value has a value.
Recommended fix

def _get_value(self, prop: ServiceNowProperty, _type: Type[R]) -> Union[R, str, None]:

        if prop.display_value not in (None, ''):
            return _type(prop.display_value)
        elif prop.actual_value not in (None, ''):
            return _type(prop.actual_value)
        else:
            return None
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

1 participant