Skip to content

Commit 8e62475

Browse files
committed
branchAttr et install.sh
1 parent ab2b26f commit 8e62475

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

install.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ ln -s $PWD/bin/resetpwd.py $INSTALL/bin/resetpwd.py 2>/dev/null
3535
ln -s $PWD/bin/delentity.py $INSTALL/bin/delentity.py 2>/dev/null
3636
ln -s $PWD/bin/upsertidentity.py $INSTALL/bin/upsertidentity.py 2>/dev/null
3737
ln -s $PWD/bin/activation.py $INSTALL/bin/activation.py 2>/dev/null
38-
39-
cp ./ps1_templates/* $INSTALL/ps1_templates
38+
cp -n ./ps1_templates/* $INSTALL/ps1_templates
4039
chmod 600 $INSTALL/ps1_templates/*
4140
cp config.yml $INSTALL
4241

src/lib/ad_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def compose_dn(entity):
5656
data['branch']=branch
5757
template_string = 'cn={{ rdnValue}},{{ branch }},{{ config.base }}'
5858
else:
59-
template= 'cn={{ rdnValue}},{{ config.base }}'
59+
template_string= 'cn={{ rdnValue}},{{ config.base }}'
6060
template = jinja2.Environment(loader=jinja2.BaseLoader()).from_string(u.config('dnTemplate',template_string))
6161
content = template.render(data)
6262
return content
@@ -96,7 +96,7 @@ def gen_script_from_template(entity,template):
9696
'dn' : compose_dn(entity),
9797
'path': dn_superior(compose_dn(entity)),
9898
'e': u.make_entry_array(entity),
99-
'config': u.get_config()
99+
'config': u.get_config(),
100100
}
101101
environment = jinja2.Environment(loader=FileSystemLoader("../ps1_templates/"))
102102
template = environment.get_template(template)

0 commit comments

Comments
 (0)