perf: 优化ansible 选择账号 (#9940)

Co-authored-by: feng <1304903146@qq.com>
pull/9942/head
fit2bot 2023-03-14 11:40:25 +08:00 committed by GitHub
parent 082af029a7
commit c4945b3563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class JMSInventory:
account_selected = None
account_usernames = self.account_prefer
if isinstance(self.account_prefer, str):
if isinstance(self.account_prefer, str) and account_usernames:
account_usernames = self.account_prefer.split(',')
# 优先使用提供的名称