Skip to content

Commit

Permalink
Merge pull request #221 from CloudVE/almahmoud-patch-1
Browse files Browse the repository at this point in the history
SubnetServices does not need network for get
  • Loading branch information
nuwang committed Oct 1, 2019
2 parents 200e309 + ffad54f commit c77f873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudbridge/base/subservices.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def _provider(self):
return self.__provider

def get(self, subnet_id):
sn = self._provider.networking.subnets.get(self.network, subnet_id)
sn = self._provider.networking.subnets.get(subnet_id)
if sn.network_id != self.network.id:
log.warning("The SubnetSubService nested in the network '{}' "
"returned subnet '{}' which is attached to another "
Expand Down

0 comments on commit c77f873

Please sign in to comment.