koalalorenzo / python-digitalocean

🐍🐳 Python module to manage Digital Ocean droplets
GNU Lesser General Public License v3.0
1.26k stars 301 forks source link

delete redundant codes. #348

Closed laixintao closed 2 years ago

laixintao commented 3 years ago

they are duplicated with L447 in the same file.

laixintao commented 3 years ago
➜ rg get_all_projects -C 5 digitalocean/Manager.py
362-        """
363-            Returns a Volume object by its ID.
364-        """
365-        return Volume.get_object(api_token=self.tokens, volume_id=volume_id)
366-
367:    def get_all_projects(self):
368-        """
369-            All the projects of the account
370-        """
371-        data = self.get_data("projects")
372-        projects = list()
--
442-            vpc.token = self.token
443-            vpcs.append(vpc)
444-
445-        return vpcs
446-
447:    def get_all_projects(self):
448-        """
449-            All the projects of the account
450-        """
451-        data = self.get_data("projects")
452-        projects = list()
laixintao commented 2 years ago

hi @koalalorenzo can you take a look?