Completed
Push — master ( 725318...0f1b74 )
by Tomaz
01:58
created

DeleteSshKeyAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %
Metric Value
dl 0
loc 8
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 7 1
1
from lib.action import BitBucketAction
2
3
4
class DeleteSshKeyAction(BitBucketAction):
5
    def run(self, key_id):
6
        """
7
        Delete SSH key from BitBucket account
8
        """
9
        bb = self._get_client()
10
        succ, res = bb.ssh.delete(key_id=key_id)
11
        return succ, res
12