Check existence in the list of SA names instead of the whole data frame.

This commit is contained in:
yueguoguo 2017-06-30 16:16:38 +08:00
Родитель 8a1643abaa
Коммит b39d0d9674
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -48,7 +48,7 @@ addExtensionDSVM <- function(context,
# this is the default name of storage account on the DSVM.
storage_account <- paste0(hostname, "sa")
existing_storage_accounts <- azureListSA(context, resource.group)
if(!storage_account %in% existing_storage_accounts)
if(!storage_account %in% existing_storage_accounts$name)
stop("No default storage account associated with the DSVM. You need to
manually create one before trying again.")