Skip to content

Commit 2960738

Browse files
committed
Fixes #97 - expand check for panorama in create_from_device
1 parent b74c7c6 commit 2960738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandevice/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2970,7 +2970,7 @@ def create_from_device(cls,
29702970
system_info = device.refresh_system_info()
29712971
version = system_info[0]
29722972
model = system_info[1]
2973-
if model == "Panorama":
2973+
if model == "Panorama" or model.startswith('M-'):
29742974
instance = panorama.Panorama(hostname,
29752975
api_username,
29762976
api_password,

0 commit comments

Comments
 (0)