Skip to content

Commit

Permalink
Fix some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Mar 6, 2024
1 parent eecf2fa commit 45aff25
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def revert_data_psql_to_etcd():
item = {
"": url,
"type": type,
"hostname": registry_name, # registry_name is changed to hostname,
"hostname": registry_name, # registry_name should be reverted to hostname,
}

if project is not None:
Expand All @@ -136,8 +136,8 @@ def revert_data_psql_to_etcd():

items.append(item)

# Records with the same registry_name are grouped together.
# In this case, if there are columns other than the project column that have different values between records,
# Records with the same hostname should be grouped together.
# Note that if there are columns other than the project column that have different values between records,
# information loss can occur.
grouped_items = {k: list(v) for k, v in groupby(items, key=lambda x: x["hostname"])}

Expand Down

0 comments on commit 45aff25

Please sign in to comment.