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 about 10 years ago. Updated about 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 #1

Updated by Dan Mick about 10 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to Dan Mick
Actions #2

Updated by Dan Mick about 10 years ago

  • Subject changed from install.py warns "Attempted to install invalid local file" when there's no local key to install.py warns "Attempted to install invalid local file" when there's no 'local' key
Actions #3

Updated by Dan Mick about 10 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF