Commit 578fc968 authored by Lucas Carvalho's avatar Lucas Carvalho

The parameter shacache can be None as well.

Because the user can just use the 'select' method to retrieve the information
from shadir server.
parent 144e6947
......@@ -29,9 +29,10 @@ class NetworkcacheClient(object):
- SHACACHE
'''
def __init__(self, shacache, shadir=None):
def __init__(self, shacache=None, shadir=None):
''' Set the initial values. '''
# ShaCache Properties
if shacache is not None:
shacache_urlparse = urlparse(shacache)
self.shacache_host = shacache_urlparse.hostname
if shacache_urlparse.port is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment