Closed dkmonaghan closed 2 years ago
Hi,
I cannot reproduce this issue in my test environment (Unity 500, 5.1.0), this is my test script:
import storops
# storops.enable_log()
unity = storops.UnitySystem('xxx', 'xxx', 'xxx')
filters = {
'local_role': storops.ReplicationSessionReplicationRoleEnum.SOURCE,
# 'status': storops.ReplicationOpStatusEnum.AUTO_SYNC_CONFIGURED,
'status': storops.ReplicationOpStatusEnum.PAUSED,
}
for session in unity.get_replication_session(**filters):
# if session.replication_resource_type == storops.ReplicationEndpointResourceTypeEnum.FILESYSTEM:
if not session.replication_resource_type == storops.ReplicationEndpointResourceTypeEnum.NASSERVER:
continue
# print(session)
session.resume()
The script executed successfully. No "cannot parse list" error as you mentioned. What's the software version of your Unity? Maybe it is a Unity issue or compatibility issue of a specific Unity version and the latest storops?
Hi @yong-huang,
I've used this code of ours again this evening and have the same issue with "cannot parse list". The code executes as expected and does resume all the sessions, but the error output still displays.
Here is some more information:
Hello,
We are receiving the following output:
When running the following code against our Unity 400 appliances:
This code just loops through all replication sessions and runs
session.resume()
. The code works as expected, resuming all sessions, but the above output gets sent to stdout. Is there any way to fix / suppress this output?