a few months ago, we made a few changes for support Singularity 3.* instance group commands,
i.e
|
subgroup = 'instance.stop' |
|
if get_singularity_version().find("version 3"): |
|
subgroup = ["instance", "stop"] |
|
|
but this break compatibility with 2.* branch, because always go inside the IF statement, it was my mistake, :( .
this can fix that.
if ( get_singularity_version().find("version 3") != -1 ):
now, testing singularity 3.* commands, they now support two ways to return singularity version
I think that they we listen to us :)
- singularity version
3.1.0-rc4.dirty
- singularity --version
singularity version 3.1.0-rc4.dirty
What you think about that?
Can this return value be used to prevent including unnecessary code?
a few months ago, we made a few changes for support Singularity 3.* instance group commands,
i.e
singularity-cli/spython/instance/cmd/stop.py
Lines 31 to 34 in f84ef3e
but this break compatibility with 2.* branch, because always go inside the IF statement, it was my mistake, :( .
this can fix that.
if ( get_singularity_version().find("version 3") != -1 ):now, testing singularity 3.* commands, they now support two ways to return
singularity versionI think that they we listen to us :)
3.1.0-rc4.dirty
singularity version 3.1.0-rc4.dirty
What you think about that?
Can this return value be used to prevent including unnecessary code?