Skip to content

Exists should return 'true' or 'false' #1846

@devigned

Description

@devigned

If an exists command is available for a resource (might not be needed if one were to use show), the only two valid returns should be 'true' or 'false'.

Currently, az group exists returns 'true' when exists and empty when it doesn't exist. By doing this, one can't say if [ $(az group exists -n group-that-doesnt-exit) == 'true' ] since that would cause a -bash: [: ==: unary operator expected to be thrown when null is returned.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions