Skip to content

Conversation

@lostintangent
Copy link
Member

@lostintangent lostintangent commented Mar 18, 2017

This PR simply adds a short name alias to the --orchestrator-type flag (on the az acs create command), since it is very common to set.

This PR simply adds a short name alias to the `--orchestrator-type` flag, since it is very common to set
@codecov-io
Copy link

codecov-io commented Mar 18, 2017

Codecov Report

Merging #2553 into master will increase coverage by 0.03%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2553      +/-   ##
==========================================
+ Coverage   72.13%   72.16%   +0.03%     
==========================================
  Files         362      362              
  Lines       19776    19798      +22     
  Branches     2920     2920              
==========================================
+ Hits        14266    14288      +22     
- Misses       4589     4593       +4     
+ Partials      921      917       -4
Impacted Files Coverage Δ
...e-cli-acs/azure/cli/command_modules/acs/_params.py 69.09% <100%> (ø) ⬆️
...dback/azure/cli/command_modules/feedback/custom.py 34.69% <0%> (ø) ⬆️
...-cli-sql/azure/cli/command_modules/sql/commands.py 100% <0%> (ø) ⬆️
src/azure-cli-core/azure/cli/core/_util.py 66.66% <0%> (ø) ⬆️
...zure-cli-sql/azure/cli/command_modules/sql/help.py 100% <0%> (ø) ⬆️
...-cli-role/azure/cli/command_modules/role/custom.py 17.89% <0%> (ø) ⬆️
...re-cli-sql/azure/cli/command_modules/sql/params.py 96.91% <0%> (+0.41%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 232beb7...c5749e3. Read the comment docs.

register_cli_argument('acs', 'resource_group', arg_type=resource_group_name_type)

register_cli_argument('acs', 'orchestrator_type', **enum_choice_list(ContainerServiceOchestratorTypes))
register_cli_argument('acs', 'orchestrator_type', options_list=('--orchestrator_type', '-t'), **enum_choice_list(ContainerServiceOchestratorTypes))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the long name simply be --type?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@troydai I would totally be in favor of that! I just wasn't sure if that would be a breaking change worth doing (did the ACS module GA already?). Let me know what you think and I'm happy to make that change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you're right. We can't do this breaking change. Ideally, we can do multiple aliases for one parameter, however this would further confusing the namespace. Let's keep the name for now. We can think of a way to introduce obsoleted parameter if necessary.

In addition, the parameter should be registered as --orchestrator-type instead of --orchestrator_type.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh right, I didn't realize I introduced that typo :) Fixed!

@troydai troydai merged commit 848bc23 into Azure:master Mar 20, 2017
thegalah pushed a commit to thegalah/azure-cli that referenced this pull request Mar 21, 2017
* Azure/master: (478 commits)
  vm live test: allow more valid power states on vmss test verifications (Azure#2564)
  rbac:catch more graph error (Azure#2567)
  appservice: support to create plan when create a webapp (Azure#2550)
  Update storage tests (Azure#2556)
  Change PEP8 check filter from whitelist to blacklist (Azure#2557)
  Add scenario tests documentation (Azure#2555)
  [ACS] Adding support for configuring a default ACS cluster (Azure#2554)
  [ACS] Provide a short name alias for the orchestrator type flag (Azure#2553)
  Sql Import/Export CLI commands and test (Azure#2538)
  Fix format bug. (Azure#2549)
  [VM/VMSS] Improved disk caching support (Azure#2522)
  VM/VMSS: incorporate credentials validation logic used by portal (Azure#2537)
  Script that creates packaged releases package archive (Azure#2508)
  Adding alias for defaults flag (Azure#2540)
  Add wait commands and --no-wait support (Azure#2524)
  choice list outside of named arguments (Azure#2521)
  Fixed test failure in test_sql_db_mgmt. (Azure#2530)
  core: support login using service principal with a cert (Azure#2457)
  Add note about being in preview (Azure#2512)
  vm:fix distro check mechanism used by disk encryption (Azure#2511)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants