Skip to content

Commit

Permalink
Reverted changes to dinosaur module
Browse files Browse the repository at this point in the history
  • Loading branch information
davenquinn committed Sep 5, 2024
1 parent 5e62387 commit 36b9158
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions dinosaur/macrostrat/dinosaur/upgrade_cluster/describe.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@ def check_database_cluster_version(client: DockerClient, volume_name: str):
version_file = Path(cluster_dir) / "PG_VERSION"
log.info(f"Checking version of database cluster in volume {volume_name}")
try:
stdout, stderr = client.containers.run(
stdout = client.containers.run(
"bash",
f"cat {version_file}",
volumes={volume_name: {"bind": cluster_dir, "mode": "ro"}},
remove=True,
stdout=True,
stderr=True,
)
if stderr is not None:
log.error(stderr.decode("utf-8").strip())
return None
except (ContainerError, CalledProcessError) as exc:
log.error(exc)
return None
Expand Down

0 comments on commit 36b9158

Please sign in to comment.