This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var SUFFIX = 'dc=vis,dc=net'; | |
var pfUsername = '<ADMINDN>'; | |
var pfPassword = '<ADMINPW>'; | |
var url = 'ldaps://vis.res.eq.edu.au'; | |
var filter = '(uid=mjwoo1)'; | |
var oldPassword = "oldpw"; | |
var newPassword = "newpw"; | |
var Client, testClient, anon_client; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import docker | |
import json | |
def to_mounts_string(mounts): | |
l = [] | |
for m in mounts: | |
l.append('Type = {}, Source = {}, Target = {}' | |
.format(m.get('Type'), m.get('Source'), m.get('Target'))) | |
return json.dumps(l, sort_keys=True, indent=4, ensure_ascii=False) |