Skip to content

Commit 715f5d4

Browse files
committed
Fixes #381 also addreses some of the files listed in #378
f5\bigip\cm__init__.py f5\bigip\sys\config.py
1 parent 1d93cb1 commit 715f5d4

4 files changed

Lines changed: 2 additions & 7 deletions

File tree

f5/bigip/resource.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,6 @@ def __init__(self, container):
595595
# You can't set these attributes, only 'read' them.
596596
self._meta_data['read_only_attributes'] = []
597597

598-
599598
def _activate_URI(self, selfLinkuri):
600599
"""Call this with a selfLink, after it's returned in _create or _load.
601600

f5/bigip/test/test_mixins.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
#
1515
import json
1616
import pytest
17-
import mock
1817

1918
from f5.bigip.mixins import CommandExecutionMixin
20-
from f5.bigip.mixins import InvalidCommand
2119
from f5.bigip.mixins import ToDictMixin
2220
from f5.bigip.mixins import UnnamedResourceMixin
2321
from f5.bigip.mixins import UnsupportedMethod
24-
from f5.bigip.resource import Resource
22+
2523

2624
class MixinTestClass(ToDictMixin):
2725
def __init__(self):
@@ -136,4 +134,3 @@ def test_load_raises(self):
136134
command_resource = CommandExecutionMixin()
137135
with pytest.raises(UnsupportedMethod):
138136
command_resource.load()
139-

f5/bigip/tm/cm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ def __init__(self, cm):
4545
Devices, Device_Groups, Traffic_Groups, Trust_Domains,
4646
Sync_Status, Add_To_Trust, Remove_From_Trust,
4747
]
48-
self._meta_data['allowed_commands'].append('run')
48+
self._meta_data['allowed_commands'].append('run')

f5/bigip/tm/sys/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,3 @@ def update(self, **kwargs):
4747
raise self.UnsupportedMethod(
4848
"%s does not support the update method" % self.__class__.__name__
4949
)
50-

0 commit comments

Comments
 (0)