-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
running inspec check on a profile that references the latest version of the resource pack fails #312
Comments
@srb3, can you check if the following are set as environment variables?
Seems like they are not set:
|
Hi @omerdemirok, this has been identified as an issue with the profile causing An InSpec input existed that was loading the resource group names as the default value: resource_groups = input('provided_resource_group', value: azure_resource_groups.names) Removing this line and just looping over all resource group names fixed it up. - resource_groups.each do |resource_group|
+ azure_resource_groups.names.each do |resource_group| cc: @srb3 |
Thanks for that @gsreynolds and @srb3. |
Cool thanks @omerdemirok! In the profile in question we've just removed the input since it's unnecessary there. |
@gsreynolds, checking the presence of credentials was causing issues in the unit test as well, and |
Previously when running inspec check (or inspec archive) on a profile that depended on the inspec azure resource pack it would work without any errors. When running check or archive on a profile that depends on the latest version of the resource pack it fails because the azure backed requires environment variables to be set.
The text was updated successfully, but these errors were encountered: