Repository: libcloud Updated Branches: refs/heads/trunk f856da991 -> e943be82d
linting patches Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/97c88185 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/97c88185 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/97c88185 Branch: refs/heads/trunk Commit: 97c88185a1b7ea94d2bb7eb4f5d4917831df81db Parents: 6add1ee Author: anthony-shaw <anthony.p.s...@gmail.com> Authored: Mon Dec 21 20:35:45 2015 +1100 Committer: anthony-shaw <anthony.p.s...@gmail.com> Committed: Tue Dec 22 10:04:28 2015 +1100 ---------------------------------------------------------------------- libcloud/compute/drivers/dimensiondata.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/97c88185/libcloud/compute/drivers/dimensiondata.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/dimensiondata.py b/libcloud/compute/drivers/dimensiondata.py index fa6ee4e..cbe1530 100644 --- a/libcloud/compute/drivers/dimensiondata.py +++ b/libcloud/compute/drivers/dimensiondata.py @@ -108,7 +108,8 @@ class DimensionDataNodeDriver(NodeDriver): :keyword ex_network_domain: Network Domain to create the node (required unless using network) - :type ex_network_domain: :class:`DimensionDataNetworkDomain` or ``str`` + :type ex_network_domain: :class:`DimensionDataNetworkDomain` + or ``str`` :keyword ex_vlan: VLAN to create the node within (required unless using network) @@ -137,9 +138,9 @@ class DimensionDataNodeDriver(NodeDriver): password = auth_obj.password if not isinstance(ex_network, DimensionDataNetwork) \ - and not isinstance(ex_network, str): + and not isinstance(ex_network, str): if not isinstance(ex_network_domain, DimensionDataNetworkDomain) \ - and not isinstance(ex_network_domain, str): + and not isinstance(ex_network_domain, str): raise ValueError('ex_network must be of DimensionDataNetwork' ' or str ' 'type or ex_network_domain must be of '