Project

General

Profile

Actions

Bug #7278

closed

install.py warns "Attempted to install invalid local file" when there's no 'local' key

Added by Dan Mick over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

'config' should be passed into _get_local_dir() and

    ldir = None
    for tsk in ctx.config['tasks']:
        if 'install' in tsk:
            try:
                ldir = tsk['install']['local']
                break
            except (TypeError, KeyError):
                log.info("Attempted to install invalid local file")

should be

    ldir = config.get('local', None)
Actions

Also available in: Atom PDF