47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# File 'lib/cloudmunch_Ruby_sdk_v2/IntegrationHelper.rb', line 47
def getIntegration(jsonParams, integrationHash)
providerName = jsonParams["providername"]
log("DEBUG", "Provider Name: " + providerName)
integrationDetailsHash = nil
if !providerName.nil? && providerName.chop.length > 0 then
regFields = integrationHash[providerName]["configuration"]
integrationDetailsHash = {}
regFields.each do |k,v|
integrationDetailsHash[k] = v
end
return integrationDetailsHash
else
return nil
end
end
|