Skip to content

Commit e30cf84

Browse files
committed
Fix format with Black
1 parent 89dbcbb commit e30cf84

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jamf2snipe

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,7 @@ def get_snipe_location_id(location_name):
10041004
except:
10051005
return "NotFound"
10061006

1007+
10071008
# Function that creates a new Snipe Model - not an asset - with a JSON payload
10081009
def create_snipe_model(payload):
10091010
api_url = "{}/api/v1/models".format(snipe_base)
@@ -1168,10 +1169,13 @@ def checkout_snipe_asset(location, asset_id, checked_out_user=None):
11681169
checked_out = checkout_snipe_asset_to_user(user, asset_id, checked_out_user)
11691170

11701171
if not checked_out and building:
1171-
checked_out = checkout_snipe_asset_to_location(building, asset_id, checked_out_user)
1172+
checked_out = checkout_snipe_asset_to_location(
1173+
building, asset_id, checked_out_user
1174+
)
11721175

11731176
return checked_out
11741177

1178+
11751179
def checkout_snipe_asset_to_user(user, asset_id, checked_out_user=None):
11761180
logging.debug("Asset {} is being checked out to {}".format(user, asset_id))
11771181
user_id = get_snipe_user_id(user)

0 commit comments

Comments
 (0)