summaryrefslogtreecommitdiffstats
path: root/collections-debian-merged/ansible_collections/netapp_eseries/santricity/vars/hubScan.groovy
blob: ca99cee476e2acc4e16be0db4b62a540eac323e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
def call(Map optional = [:], String projectName, String projectVersion) {
    optional.projectName = projectName
    optional.projectVersion = projectVersion
    call(optional)
}

def call(Map optional) {
    // Correctly set if the scan is intended for production.
    //   hubScan uses the variable 'staging' (defaulting to true), and hubScanProject uses 'productionScan' (defaulting to false).
    optional.productionScan = !((boolean) optional.staging)

    hubScanProject(optional)
}