mirror of
https://github.com/thegeeklab/docker-tidy.git
synced 2024-06-02 00:19:41 +02:00
Merge pull request #45 from samiam/fix_empty_volumes
Correctly handle empty dangling volumes
This commit is contained in:
commit
49e1bdfe3d
|
@ -1,5 +1,6 @@
|
||||||
|
repos:
|
||||||
- repo: git://github.com/pre-commit/pre-commit-hooks
|
- repo: git://github.com/pre-commit/pre-commit-hooks
|
||||||
sha: 'v0.4.2'
|
rev: v1.2.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: check-docstring-first
|
- id: check-docstring-first
|
||||||
|
|
12
.travis.yml
12
.travis.yml
|
@ -1,8 +1,12 @@
|
||||||
language: python
|
language: python
|
||||||
env:
|
matrix:
|
||||||
- TOXENV=py27
|
include:
|
||||||
- TOXENV=py33
|
- python: 2.7
|
||||||
- TOXENV=py34
|
env: TOXENV=py27
|
||||||
|
- python: 3.5
|
||||||
|
env: TOXENV=py35
|
||||||
|
- python: 3.6
|
||||||
|
env: TOXENV=py36
|
||||||
install:
|
install:
|
||||||
- pip install tox
|
- pip install tox
|
||||||
script:
|
script:
|
||||||
|
|
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -6,7 +6,7 @@ docker-custodian (0.7.0) lucid; urgency=low
|
||||||
|
|
||||||
docker-custodian (0.6.1) lucid; urgency=low
|
docker-custodian (0.6.1) lucid; urgency=low
|
||||||
|
|
||||||
* New release for pypi
|
* New release for pypi
|
||||||
|
|
||||||
-- kwa <kwa@kwa-MacBookPro> Wed, 31 Aug 2016 09:49:37 -0700
|
-- kwa <kwa@kwa-MacBookPro> Wed, 31 Aug 2016 09:49:37 -0700
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ docker-custodian (0.5.3) lucid; urgency=low
|
||||||
|
|
||||||
docker-custodian (0.5.2) lucid; urgency=low
|
docker-custodian (0.5.2) lucid; urgency=low
|
||||||
|
|
||||||
* Fixed bug where never started containers that are not old were getting removed
|
* Fixed bug where never started containers that are not old were getting removed
|
||||||
|
|
||||||
-- Semir Patel <spatel@yelp.com> Tue, 15 Dec 2015 09:44:26 -0800
|
-- Semir Patel <spatel@yelp.com> Tue, 15 Dec 2015 09:44:26 -0800
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ docker-custodian (0.3.2) lucid; urgency=low
|
||||||
|
|
||||||
docker-custodian (0.3.1) lucid; urgency=low
|
docker-custodian (0.3.1) lucid; urgency=low
|
||||||
|
|
||||||
* Fix broken commands
|
* Fix broken commands
|
||||||
|
|
||||||
-- Daniel Nephin <dnephin@yelp.com> Mon, 09 Mar 2015 17:58:03 -0700
|
-- Daniel Nephin <dnephin@yelp.com> Mon, 09 Mar 2015 17:58:03 -0700
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ def get_all_images(client):
|
||||||
|
|
||||||
def get_dangling_volumes(client):
|
def get_dangling_volumes(client):
|
||||||
log.info("Getting dangling volumes")
|
log.info("Getting dangling volumes")
|
||||||
volumes = client.volumes({'dangling': True})['Volumes']
|
volumes = client.volumes({'dangling': True})['Volumes'] or []
|
||||||
log.info("Found %s dangling volumes", len(volumes))
|
log.info("Found %s dangling volumes", len(volumes))
|
||||||
return volumes
|
return volumes
|
||||||
|
|
||||||
|
|
3
tox.ini
3
tox.ini
|
@ -1,5 +1,5 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py27,py33,py34
|
envlist = py27,py35,py36
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
|
@ -9,5 +9,6 @@ deps =
|
||||||
pytest
|
pytest
|
||||||
commands =
|
commands =
|
||||||
py.test {posargs:tests}
|
py.test {posargs:tests}
|
||||||
|
pre-commit autoupdate
|
||||||
pre-commit install -f --install-hooks
|
pre-commit install -f --install-hooks
|
||||||
pre-commit run --all-files
|
pre-commit run --all-files
|
||||||
|
|
Loading…
Reference in New Issue
Block a user