Skip to content

Commit

Permalink
default capabilities when none are recorded
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-sahlmann committed Dec 20, 2023
1 parent d657ffd commit 2c58c01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mb_netmgmt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# along with mb-netmgmt. If not, see <https://www.gnu.org/licenses/

"""Network Management Protocols for Mountebank"""
__version__ = "0.0.76"
__version__ = "0.0.77"

import os
import subprocess
Expand Down
2 changes: 2 additions & 0 deletions mb_netmgmt/netconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def handle_prompt(self):
mb_response = self.post_request({"rpc": ""})
try:
response = mb_response["response"]
if not response:
response = DefaultDeviceHandler._BASE_CAPABILITIES
except KeyError:
try:
capabilities = [c for c in self.manager.server_capabilities]
Expand Down

0 comments on commit 2c58c01

Please sign in to comment.