Add Openstack Swift provider to rclone

Joined
Oct 15, 2019
Messages
5
Hi all,

I wanted to add Swift as a new cloud provider in Cloud Credentials UI, it works on legacy interface but not the new one, it doesn't show the fields

Sélection_014.png

The code : https://github.com/yo1frenchtoast/freenas/commit/8b1bfb8da2343912861db2216c8e5515be5ac59f

I just wanted to know what I was missing to make it work on the modern interface, I searched but didn't find what I did wrong

I only found that freenasUI.middleware.form (https://github.com/freenas/freenas/blob/master/gui/middleware/form.py) generate provider's forms dynamically

Thanks in advance =)
 
Joined
Oct 15, 2019
Messages
5
PS : works like a charm, I successfully done a cloud sync task on OVH Object Storage in modern UI (legacy for Cloud Credentials setting)
 

atakacs

Explorer
Joined
Apr 23, 2012
Messages
92
Hmm...
Done just that but not seeing any Swift entry for cloud credentials...
Should I use the python3.7 directory nowadays ?
If not how can I troubleshoot this ?
 

theomi_

Cadet
Joined
Jun 24, 2020
Messages
1
Hi there,
Did you finally find a solution ?
I'm trying to do exactly the same thing on my FreeNAS, I tried importing the py file and I get the same result (Swift appears on the providers list, but there's no fields and I can't create the credential).
I compared your py file with the others in the remote directory, and it seems that the verbose attribute has changed for title, but even with the change made the fields still don't appear, pretty strange. It would be really great to find the solution because rclone supports swift out of the box, this is just a GUI problem... And I would really need it !

Thanks in advance :)
 
Top