Update 'freenas_network_unlock.py'

This commit is contained in:
2020-03-04 13:08:03 -05:00
parent 8cbbaaedf8
commit a40d137bee

View File

@@ -3,7 +3,7 @@ import requests, platform, subprocess, config, logging, simplejson as json, argp
from subprocess import call
# You must initialize logging, otherwise you'll not see debug output.
logging.basicConfig(level=logging.DEBUG,format='%(asctime)s - [%(levelname)s] %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
logging.basicConfig(level=logging.INFO,format='%(asctime)s - [%(levelname)s] %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
def request(resource, method='GET', data=None):
if data is None: