Skip to content

Commit 17f6a0b

Browse files
committed
Bugfix for force_remote= in the listing functions.
1 parent 5f5bf40 commit 17f6a0b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Version 0.1.7
4+
5+
- Bugfix to `force_remote=` in `list_projects()`, `list_assets()` and `list_versions()`.
6+
37
## Version 0.1.6
48

59
- Added `create=` option to `allocate_upload_directory()` to only return a name without creating the directory.

src/pygobbler/list_projects.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def list_projects(registry: str, url: str, force_remote: bool = False) -> List[s
3434

3535

3636
def list_registry_directories(path: str, registry: str, url: str, force_remote: bool) -> List[str]:
37-
if force_remote and os.path.exists(registry):
37+
if not force_remote and os.path.exists(registry):
3838
output = []
3939
full = os.path.join(registry, path)
4040
for x in os.listdir(full):

0 commit comments

Comments
 (0)