Skip to content

Conversation

@fengzhou-msft
Copy link
Member

@fengzhou-msft fengzhou-msft commented Mar 12, 2020

There's a weird bug that in _params.py. I forgot to rename the sku-name option to sku, but it turns out --sku can still be used and the value will be assigned to sku_name correctly. That's why previous tests and linter all passed with --sku.

Fix Azure/azure-cli#12590.


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

@azuresdkci
Copy link

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:

docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/fengzhou-msft/azure-cli-extensions.git@notification-hub#subdirectory=src/$EXT&egg=$EXT"

@fengzhou-msft fengzhou-msft self-assigned this Mar 12, 2020
@fengzhou-msft fengzhou-msft changed the title [Notification Hub] fix sku [Notification Hub] fix sku and help Mar 15, 2020
c.argument('location', arg_type=get_location_type(self.cli_ctx), validator=get_default_location_from_resource_group)
c.argument('tags', tags_type)
c.argument('sku_name', arg_type=get_enum_type(['Free', 'Basic', 'Standard']), help='Name of the notification hub sku')
c.ignore('sku_name')
Copy link
Contributor

Choose a reason for hiding this comment

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

This would be a breaking change and user would meet errors. Just want to confirm. If the usage is quite low, it's fine to do it.

namespace_name,
notification_hub_name,
tags=None,
sku_name=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

If you delete it here, I think we don't need the c.ignore

Copy link
Contributor

Choose a reason for hiding this comment

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

ok. got it. create command still have sku

Copy link
Contributor

@mmyyrroonn mmyyrroonn left a comment

Choose a reason for hiding this comment

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

LGTM

@fengzhou-msft fengzhou-msft merged commit 776c4a4 into Azure:master Apr 2, 2020
@fengzhou-msft fengzhou-msft deleted the notification-hub branch April 2, 2020 13:40
ManuInNZ pushed a commit to ManuInNZ/azure-cli-extensions that referenced this pull request Apr 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

az notification-hub authorization-rule create --rights does not allow for multiple comma delimited values

4 participants