azure-cli: only alias removed extensions if allowed (#345698)

This commit is contained in:
Paul Meyer 2024-10-02 11:37:32 +02:00 committed by GitHub
commit da60a43b43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,7 @@
# Checkout ./README.md for more information.
{
config,
lib,
mkAzExtension,
mycli,
@ -83,6 +84,8 @@
meta.maintainers = with lib.maintainers; [ katexochen ];
};
}
// lib.optionalAttrs config.allowAliases {
# Removed extensions
blockchain = throw "The 'blockchain' extension for azure-cli was deprecated upstream"; # Added 2024-04-26
vm-repair = throw "The 'vm-repair' extension for azure-cli was deprecated upstream"; # Added 2024-08-06