modules/mu/clouds/google/vpc.rb in cloud-mu-3.1.1 vs modules/mu/clouds/google/vpc.rb in cloud-mu-3.1.2beta2
- old
+ new
@@ -239,10 +239,10 @@
args[:project],
args[:cloud_id].to_s.sub(/^.*?\/([^\/]+)$/, '\1')
)
resp[args[:cloud_id]] = vpc if !vpc.nil?
rescue ::Google::Apis::ClientError => e
- MU.log "Do not have permissions to retrieve VPC #{args[:cloud_id]} in project #{args[:project]}", MU::WARN, details: caller
+ MU.log "VPC #{args[:cloud_id]} in project #{args[:project]} does not exist, or I do not have permission to view it", MU::WARN
end
else # XXX other criteria
vpcs = begin
MU::Cloud::Google.compute(credentials: args[:credentials]).list_networks(
args[:project]