-
-
Notifications
You must be signed in to change notification settings - Fork 954
Fix default actor name handling #1073
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
In c96476b, the new default_name nested function does not contain a retun statement. This leads to an issue when the environment variables are not present, where the actor name would not be set. Signed-off-by: Athos Ribeiro <athos@redhat.com>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -591,7 +591,7 @@ def default_email(): | |
return user_id | ||
|
||
def default_name(): | ||
default_email().split('@')[0] | ||
return default_email().split('@')[0] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It’s funny this slipped by me as well since I only write Rust these says, in which this is exactly what we would have expected. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for catching this one early, @harupy! |
||
|
||
for attr, evar, cvar, default in (('name', env_name, cls.conf_name, default_name), | ||
('email', env_email, cls.conf_email, default_email)): | ||
|