Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/s/a/sahara-HEAD/sahara/plugins/hdp/ambariplugin.py   sahara(Download)
    def validate_edp(self, cluster):
        oo_count = u.get_instances_count(cluster, 'oozie_server')
        if oo_count != 1:
            raise ex.InvalidComponentCountException('oozie', '1', oo_count)
 

src/s/a/sahara-HEAD/sahara/plugins/vanilla/plugin.py   sahara(Download)
    def validate_edp(self, cluster):
        oo_count = u.get_instances_count(cluster, 'oozie')
        if oo_count != 1:
            raise ex.InvalidComponentCountException('oozie', '1', oo_count)