Exemplo n.º 1
0
    def filter(self, cluster, user, passphrase=True):
        cluster = super(Cluster, self).filter(doc=cluster, user=user)

        if parse('config.ssh.passphrase').find(cluster) and passphrase:
            try:
                check_group_membership(user, cumulus.config.girder.group)
            except RestException:
                del cluster['config']['ssh']['passphrase']

        return cluster
Exemplo n.º 2
0
    def filter(self, cluster, user, passphrase=True):
        cluster = super(Cluster, self).filter(doc=cluster, user=user)

        if parse('config.ssh.passphrase').find(cluster) and passphrase:
            try:
                check_group_membership(user, cumulus.config.girder.group)
            except RestException:
                del cluster['config']['ssh']['passphrase']

        return cluster
Exemplo n.º 3
0
 def check_group_membership(self, user, group):
     return check_group_membership(user, group)