Skip to content

Commit

Permalink
add java 17 support (#4293)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmssp committed Jan 10, 2022
1 parent 1531a34 commit 0a5d27b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spring-cloud/azext_spring_cloud/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
validate_cpu, validate_memory)
from ._utils import ApiType

from .vendored_sdks.appplatform.v2020_07_01.models import RuntimeVersion, TestKeyType
from .vendored_sdks.appplatform.v2022_01_01_preview.models._app_platform_management_client_enums import SupportedRuntimeValue, TestKeyType

name_type = CLIArgumentType(options_list=[
'--name', '-n'], help='The primary resource name', validator=validate_name)
Expand Down Expand Up @@ -212,7 +212,7 @@ def prepare_logs_argument(c):

for scope in ['spring-cloud app update', 'spring-cloud app deployment create', 'spring-cloud app deploy', 'spring-cloud app create']:
with self.argument_context(scope) as c:
c.argument('runtime_version', arg_type=get_enum_type(RuntimeVersion),
c.argument('runtime_version', arg_type=get_enum_type(SupportedRuntimeValue),
help='Runtime version of used language')
c.argument('jvm_options', type=str, validator=validate_jvm_options,
help="A string containing jvm options, use '=' instead of ' ' for this argument to avoid bash parse error, eg: --jvm-options='-Xms1024m -Xmx2048m'")
Expand Down

0 comments on commit 0a5d27b

Please sign in to comment.