diff --git a/src/notification-hub/HISTORY.rst b/src/notification-hub/HISTORY.rst index 8823a690630..b49b6e9c007 100644 --- a/src/notification-hub/HISTORY.rst +++ b/src/notification-hub/HISTORY.rst @@ -3,6 +3,10 @@ Release History =============== +2.0.0b2 +++++++ +* Fix notification-hub credential create command output issue + 2.0.0b1 ++++++ * Remove `az notification-hub test-send` diff --git a/src/notification-hub/azext_notification_hub/aaz/latest/notification_hub/credential/gcm/_create.py b/src/notification-hub/azext_notification_hub/aaz/latest/notification_hub/credential/gcm/_create.py index 8863b54be1b..b70feb9a99b 100644 --- a/src/notification-hub/azext_notification_hub/aaz/latest/notification_hub/credential/gcm/_create.py +++ b/src/notification-hub/azext_notification_hub/aaz/latest/notification_hub/credential/gcm/_create.py @@ -92,7 +92,9 @@ def post_instance_create(self, instance): pass def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.selectors.subresource.required(), client_flatten=True) + result = self.deserialize_output(self.ctx.selectors.subresource.get(), client_flatten=True) + if result is None or result == AAZUndefined: + return {} return result class SubresourceSelector(AAZJsonSelector): diff --git a/src/notification-hub/setup.py b/src/notification-hub/setup.py index 5f84734c0e5..fbe2492f535 100644 --- a/src/notification-hub/setup.py +++ b/src/notification-hub/setup.py @@ -16,7 +16,7 @@ # TODO: Confirm this is the right version number you want and it matches your # HISTORY.rst entry. -VERSION = '2.0.0b1' +VERSION = '2.0.0b2' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers