Closed bschwal closed 11 months ago
Hi @bschwal, I'll take a look at this, but I don't think this change will do what you want. I'll confirm, but a single session may have multiple containers open.
@bschwal, the DsosContainer class already has a path() method. But I will add a dsos_container_path() function for C clients as well.
@tom95858 it does have a path() method but the path variable is never set by anything. This change ensures it is. I've tested this out and it does perform how I'd like (in my implementation at least).
I think I saw in SOS-5 that the path_ variable does get set but no longer in SOS-6.
Hi @bschwal, I just pushed a change that hopefully resolves this issue. Please take a look.
Hi @tom95858 I tried out that change and it looks like it works just fine. It does come back as a bytes object rather than a string which I can work around but just wanted you to be aware. Thanks!
@bschwal can you confirm that this is fixed in the top of tree?
Yep all good!
Great, thanks...
On Mon, Oct 16, 2023 at 7:50 AM bschwal @.***> wrote:
Yep all good!
— Reply to this email directly, view it on GitHub https://github.com/ovis-hpc/sos/pull/93#issuecomment-1764527802, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVTPXEVLQZWHWDBLVXHPN3X7U3SHAVCNFSM6AAAAAA53COAJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRUGUZDOOBQGI . You are receiving this because you modified the open/close state.Message ID: @.***>
-- Thomas Tucker, President, Open Grid Computing, Inc.
In SOS-6 it does not appear that the DsosContainer object's path_ variable ever gets set. I updated Sos.Session to have a path variable and then pass that into DsosContainer on init. By doing this I can look at DsosContainer itself to see what container it is pointing to without needing to pass that information along elsewhere.