Use db manager in create_session

master
Erin Bleiweiss 2018-09-13 11:49:20 -05:00
parent 1ec1b3b493
commit 89b68df9d8
No known key found for this signature in database
GPG Key ID: F69B2138BD594660
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ protected
# Pass along any associated payload uuid if specified
if opts[:payload_uuid]
s.payload_uuid = opts[:payload_uuid]
if s.payload_uuid.respond_to?(:puid_hex) && (uuid_info = framework.uuid_db[s.payload_uuid.puid_hex])
if s.payload_uuid.respond_to?(:puid_hex) && (uuid_info = framework.db.get_payload({uuid: s.payload_uuid.puid_hex}))
s.payload_uuid.registered = true
s.payload_uuid.name = uuid_info['name']
s.payload_uuid.timestamp = uuid_info['timestamp']