Skip to content

Commit ea9c428

Browse files
author
Lily Pan
committed
fix casing
1 parent df074d0 commit ea9c428

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/azure-cli/azure/cli/command_modules/acs/_consts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
CONST_GPU_INSTANCE_PROFILE_MIG7_G = "MIG7g"
5454

5555
# gpu driver install
56-
CONST_GPU_DRIVER_INSTALL = "install"
57-
CONST_GPU_DRIVER_NONE = "none"
56+
CONST_GPU_DRIVER_INSTALL = "Install"
57+
CONST_GPU_DRIVER_NONE = "None"
5858

5959
# consts for ManagedCluster
6060
# load balancer sku

src/azure-cli/azure/cli/command_modules/acs/_help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,7 @@
16491649
short-summary: Set to '*' to allow a new agentpool to be created, but to prevent updating an existing agentpool. Other values will be ignored.
16501650
- name: --gpu-driver
16511651
type: string
1652-
short-summary: Whether to install driver for GPU node pool. Possible values are "install" or "none". Default is "install".
1652+
short-summary: Whether to install driver for GPU node pool. Possible values are "Install" or "None". Default is "Install".
16531653
16541654
examples:
16551655
- name: Create a nodepool in an existing AKS cluster with ephemeral os enabled.

src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -701,11 +701,11 @@ def common_get_gpu_driver(self):
701701
self.assertEqual(ctx_1.get_gpu_driver(), None)
702702
agentpool = self.create_initialized_agentpool_instance(
703703
gpu_profile=self.models.GPUProfile(
704-
driver="install"
704+
driver="Install"
705705
)
706706
)
707707
ctx_1.attach_agentpool(agentpool)
708-
self.assertEqual(ctx_1.get_gpu_driver(), "install")
708+
self.assertEqual(ctx_1.get_gpu_driver(), "Install")
709709

710710
def common_get_node_count_and_enable_cluster_autoscaler_min_max_count(
711711
self,
@@ -2455,7 +2455,7 @@ def common_set_up_gpu_profile(self):
24552455
dec_1 = AKSAgentPoolAddDecorator(
24562456
self.cmd,
24572457
self.client,
2458-
{"gpu_driver": "install"},
2458+
{"gpu_driver": "Install"},
24592459
self.resource_type,
24602460
self.agentpool_decorator_mode,
24612461
)
@@ -2468,7 +2468,7 @@ def common_set_up_gpu_profile(self):
24682468
dec_agentpool_1 = self._restore_defaults_in_agentpool(dec_agentpool_1)
24692469
ground_truth_agentpool_1 = self.create_initialized_agentpool_instance(
24702470
gpu_profile=self.models.GPUProfile(
2471-
driver="install",
2471+
driver="Install",
24722472
)
24732473
)
24742474
self.assertEqual(dec_agentpool_1, ground_truth_agentpool_1)

src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12046,10 +12046,10 @@ def test_aks_create_gpu_driver_flow(self, resource_group, resource_group_locatio
1204612046
"--cluster-name={name} "
1204712047
"--name={node_pool_name} "
1204812048
"--os-type Linux "
12049-
"--gpu-driver none",
12049+
"--gpu-driver None",
1205012050
checks=[
1205112051
self.check("provisioningState", "Succeeded"),
12052-
self.check("gpuProfile.driver", "none"),
12052+
self.check("gpuProfile.driver", "None"),
1205312053
],
1205412054
)
1205512055

@@ -12060,10 +12060,10 @@ def test_aks_create_gpu_driver_flow(self, resource_group, resource_group_locatio
1206012060
"--cluster-name={name} "
1206112061
"--name={node_pool_name_second} "
1206212062
"--os-type Linux "
12063-
"--gpu-driver install",
12063+
"--gpu-driver Install",
1206412064
checks=[
1206512065
self.check("provisioningState", "Succeeded"),
12066-
self.check("gpuProfile.driver", "install"),
12066+
self.check("gpuProfile.driver", "Install"),
1206712067
],
1206812068
)
1206912069

0 commit comments

Comments
 (0)