From 3d2a8dfadb0808258f5dac80bb49e29b3f859564 Mon Sep 17 00:00:00 2001 From: Shea Craig Date: Mon, 2 Feb 2015 10:07:50 -0500 Subject: [PATCH] Fix for sheagcraig/JSSImporter#19 --- CHANGELOG.md | 8 +++++++- jss/__init__.py | 2 +- jss/distribution_points.py | 12 ++++++++---- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fe7de7..f692142 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ -### 0.5.4 (December 9, 2014) Apex Predator +### 0.5.5 (February 2, 2015) Sanpo Shimasu + +FIXES: + +- Automatically configured distribution points (AFP and SMB shares using just name and password) need to pass jss object so ```jss_migrated``` is handled correctly. (sheagcraig/JSSImporter#19) + +### 0.5.4 (January 29, 2015) Apex Predator FIXES: diff --git a/jss/__init__.py b/jss/__init__.py index 5fb6c12..6906a87 100644 --- a/jss/__init__.py +++ b/jss/__init__.py @@ -30,4 +30,4 @@ JSSUnsupportedSearchMethodError, JSSFileUploadParameterError, JSSUnsupportedFileType) -__version__ = "0.5.4" +__version__ = "0.5.5" diff --git a/jss/distribution_points.py b/jss/distribution_points.py index a91c57e..0b1fa05 100755 --- a/jss/distribution_points.py +++ b/jss/distribution_points.py @@ -119,13 +119,15 @@ def __init__(self, jss): dp = AFPDistributionPoint(URL=URL, port=port, share_name=share_name, mount_point=mount_point, - username=username, password=password) + username=username, password=password, + jss=self.jss) elif connection_type == 'SMB': dp = SMBDistributionPoint(URL=URL, port=port, share_name=share_name, mount_point=mount_point, domain=domain, username=username, - password=password) + password=password, + jss=self.jss) # No need to keep looping. break @@ -158,7 +160,8 @@ def __init__(self, jss): share_name=share_name, mount_point=mount_point, username=username, - password=password) + password=password, + jss=self.jss) elif connection_type == 'SMB': # If port isn't given, assume it's the std of # 139. @@ -168,7 +171,8 @@ def __init__(self, jss): mount_point=mount_point, domain=domain, username=username, - password=password) + password=password, + jss=self.jss) elif repo.get('type') == 'JDS': dp = JDS(jss=self.jss)