uranusjr commented on code in PR #33631:
URL: https://github.com/apache/airflow/pull/33631#discussion_r1302353020


##########
airflow/cli/commands/standalone_command.py:
##########
@@ -193,9 +193,7 @@ def initialize_database(self):
             self.print_output("standalone", "Creating admin user")
             role = appbuilder.sm.find_role("Admin")
             assert role is not None
-            password = "".join(
-                
random.choice("abcdefghkmnpqrstuvwxyzABCDEFGHKMNPQRSTUVWXYZ23456789") for i in 
range(16)
-            )
+            password = 
"".join(random.choices("abcdefghkmnpqrstuvwxyzABCDEFGHKMNPQRSTUVWXYZ23456789", 
k=16))

Review Comment:
   A comment might be a good idea here so this discussion doesn’t need to be 
repeated in the future.



##########
airflow/cli/commands/standalone_command.py:
##########
@@ -193,9 +193,7 @@ def initialize_database(self):
             self.print_output("standalone", "Creating admin user")
             role = appbuilder.sm.find_role("Admin")
             assert role is not None
-            password = "".join(
-                
random.choice("abcdefghkmnpqrstuvwxyzABCDEFGHKMNPQRSTUVWXYZ23456789") for i in 
range(16)
-            )
+            password = 
"".join(random.choices("abcdefghkmnpqrstuvwxyzABCDEFGHKMNPQRSTUVWXYZ23456789", 
k=16))

Review Comment:
   A comment might be a good idea here so this discussion doesn’t need to be 
repeated in the future.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to