Skip to content
Commit 447f5957 authored by Chandan Singh's avatar Chandan Singh
Browse files

sources/docker.py: Fix get_ref() to work when digest is not set

Currently, `get_ref()` does not work when `self.digest` is not set as it
assumes that it is a string, which is not the case. This means that
tracking a docker source which does not has any ref set will fail with
a no-so-friendly message saying
`AttributeError: 'NoneType' object has no attribute 'startswith'`.

Fix it so that `get_ref()` returns `None` when the ref is `None`.
parent b96de85a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment