Skip to content

Commit c2168d0

Browse files
PauloMigAlmeidaPaulo Almeida
authored and
Paulo Almeida
committed
Fix bug causing start options being ignored when network was set to false
1 parent eae9eb4 commit c2168d0

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.circleci/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ test_scompose: &test_scompose
4242
pytest -sv scompose/tests/test_client.py
4343
pytest -sv scompose/tests/test_utils.py
4444
pytest -sv scompose/tests/test_command_args.py
45+
pytest -sv scompose/tests/test_config.py
4546
4647
install_dependencies: &install_dependencies
4748
name: Install Python dependencies

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
1414
The versions coincide with releases on pypi.
1515

1616
## [0.0.x](https://github.com/singularityhub/singularity-compose/tree/master) (0.0.x)
17+
- fix a bug triggered when using startoptions in conjunction with network=false (0.0.15)
1718
- bind volumes can handle tilde expansion (0.0.14)
1819
- fix module import used by check command (0.0.13)
1920
- adding jsonschema validation and check command (0.0.12)

scompose/project/instance.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def _get_network_commands(self, ip_address=None):
193193
"""take a list of ports, return the list of --network-args to
194194
ensure they are bound correctly.
195195
"""
196-
ports = self.start_opts + ["--net"]
196+
ports = ["--net"]
197197

198198
# Fakeroot means not needing sudo
199199
fakeroot = "--fakeroot" in self.start_opts or "-f" in self.start_opts
@@ -546,6 +546,9 @@ def create(self, ip_address=None, sudo=False, writable_tmpfs=False):
546546
if self.network["enable"]:
547547
options += self._get_network_commands(ip_address)
548548

549+
# Start options
550+
options += self.start_opts
551+
549552
# Hostname
550553
options += ["--hostname", self.name]
551554

scompose/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
"""
1010

11-
__version__ = "0.1.14"
11+
__version__ = "0.1.15"
1212
AUTHOR = "Vanessa Sochat"
1313
AUTHOR_EMAIL = "[email protected]"
1414
NAME = "singularity-compose"

0 commit comments

Comments
 (0)