def checkVersion()

in src/servicecatalog.py [0:0]


    def checkVersion(self, productId):
        """
        This method is used to check if specific version of a product in service catalog portfolio exists.
        :param productId:
        :return:
        """
        response = self.sc_client.describe_product_as_admin(
            AcceptLanguage='en',
            Id=productId
        )
        a = response['ProvisioningArtifactSummaries']
        for b in a:
            if (b['Name'] == self.version):
                return b['Id']
        else:
            return False