diff --git a/NEWS.md b/NEWS.md index 4299f51..ec8bfff 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,6 @@ # AzureRMR 1.0.0.9000 +* Don't print empty fields for ARM objects. * Add optional `etag` field to resource object definition. * Fix `AzureToken` object to never have a `NULL` password field (important to allow devicecode refreshing). * Add `location` argument to `az_resource_group$create_resource` method, rather than hardcoding it to the resgroup location. diff --git a/R/format.R b/R/format.R index 6984540..6a6e598 100644 --- a/R/format.R +++ b/R/format.R @@ -40,7 +40,7 @@ format_public_fields <- function(env, exclude=character(0)) objconts <- sapply(objnames, function(n) { x <- get(n, env) - deparsed <- if(is_empty(x) || is.function(x) || x == "") # don't print empty fields + deparsed <- if(is_empty(x) || is.function(x)) # don't print empty fields return(NULL) else if(is.list(x)) paste0("list(", paste(names(x), collapse=", "), ")")