Skip to content

Commit 9956bbe

Browse files
committed
Fix style errors
1 parent bd0c772 commit 9956bbe

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/azure-cli/azure/cli/command_modules/cognitiveservices/_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def load_arguments(self, _):
165165
c.argument('allow_project_management',
166166
options_list=['--manage-projects', '--allow-project-management'],
167167
arg_type=get_three_state_flag(),
168-
help='Only used for AIServices kind. Specifies whether this resource support project management. Default is true.')
168+
help='AIServices kind only. Enables project management. Default true.')
169169

170170
with self.argument_context('cognitiveservices account create') as c:
171171
c.argument('assign_identity', help='Generate and assign an Azure Active Directory Identity for this account.')
@@ -174,7 +174,7 @@ def load_arguments(self, _):
174174
with self.argument_context('cognitiveservices account update', arg_group="AI Services") as c:
175175
c.argument('kind',
176176
arg_type=get_enum_type(data=['AIServices', 'OpenAI']),
177-
help='The target API name to transform the existing account into. See https://aka.ms/upgrade-aoai-foundry for details.')
177+
help='The target API name to transform the existing account into.')
178178

179179
with self.argument_context('cognitiveservices account network-rule') as c:
180180
c.argument('ip_address', help='IPv4 address or CIDR range.')

src/azure-cli/azure/cli/command_modules/cognitiveservices/custom.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,19 @@ def _filter_sku(_sku):
8686

8787
return [x for x in cf_resource_skus(cmd.cli_ctx).list() if _filter_sku(x)]
8888

89+
8990
def _is_valid_kind_change(current_kind, target_kind):
9091
valid_upgrades = {
9192
'AIServices': ['OpenAI'],
9293
'OpenAI': ['AIServices']
9394
}
9495
return target_kind in valid_upgrades.get(current_kind, [])
9596

97+
9698
def _kind_uses_project_management(kind):
9799
return kind in ['AIServices']
98100

101+
99102
def create(
100103
client, resource_group_name, account_name, sku_name, kind, location, custom_domain=None,
101104
tags=None, api_properties=None, assign_identity=False, storage=None, encryption=None,

0 commit comments

Comments
 (0)