Skip to content

Commit

Permalink
fix formatting and linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Monea committed Jul 8, 2022
1 parent c7182dd commit 31ab563
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hubblestack/fileclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
MAX_FILENAME_LENGTH = 255


def get_file_client(opts, pillar=False):
def get_file_client(opts):
'''
Read in the ``file_client`` option and return the correct type of file
server
Expand Down Expand Up @@ -257,7 +257,7 @@ def cache_dir(self, path, saltenv='base', include_empty=False,
os.makedirs(minion_dir)
ret.append(minion_dir)

def scan_files(target, cachedir):
def scan_files(target):
log.debug('cache_dir(%s) scanning %s for files that should be removed', path, target)
for wpath, dirs, files in os.walk(target):
for file in files:
Expand Down Expand Up @@ -688,7 +688,7 @@ def on_chunk(chunk):
hubblestack.utils.files.rename(dest_tmp, dest)
return dest
except HTTPError as exc:
raise MinionError('HTTP error {0} reading {1}: {3}'.format(
raise MinionError('HTTP error {0} reading {1}: {2}'.format(
exc.code,
url,
BaseHTTPRequestHandler.responses[exc.code]))
Expand Down

0 comments on commit 31ab563

Please sign in to comment.