зеркало из https://github.com/Azure/AzureRMR.git
fix print method
This commit is contained in:
Родитель
f16a8d65a8
Коммит
27a6b59642
1
NEWS.md
1
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.
|
||||
|
|
|
@ -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=", "), ")")
|
||||
|
|
Загрузка…
Ссылка в новой задаче