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