Skip to content

Commit

Permalink
Fix using the username in fedora messaging messages
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Aug 24, 2024
1 parent 558eb60 commit 503a67e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mirrormanager2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def site_drop(site_id):
"name": siteobj.name,
"org_url": siteobj.org_url,
},
"agent": flask.g.fas_user,
"agent": flask.g.fas_user.username,
},
)
fedmsg_publish(message_v2)
Expand Down Expand Up @@ -322,7 +322,7 @@ def host_new(site_id):
"bandwidth": host.bandwidth_int,
"asn": host.asn,
},
"agent": flask.g.fas_user,
"agent": flask.g.fas_user.username,
},
)
fedmsg_publish(message_v2)
Expand Down Expand Up @@ -387,7 +387,7 @@ def host_drop(host_id):
"bandwidth": host.bandwidth_int,
"asn": host.asn,
},
"agent": flask.g.fas_user,
"agent": flask.g.fas_user.username,
},
)
fedmsg_publish(message_v2)
Expand Down Expand Up @@ -547,7 +547,7 @@ def host_view(host_id):
"bandwidth": host.bandwidth_int,
"asn": host.asn,
},
"agent": flask.g.fas_user,
"agent": flask.g.fas_user.username,
},
)
fedmsg_publish(message_v2)
Expand Down

0 comments on commit 503a67e

Please sign in to comment.