Skip to content

Commit

Permalink
only source configuration files ending with .conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Schleizer committed Mar 18, 2016
1 parent 5c1aea7 commit 89de971
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion usr/bin/sdwdate
Expand Up @@ -50,7 +50,7 @@ class Pool:
@property
def allowed_failures(self):
if os.path.exists('/etc/sdwdate.d/'):
files = sorted(glob.glob('/etc/sdwdate.d/*'))
files = sorted(glob.glob('/etc/sdwdate.d/*.conf'))
for f in files:
with open(f) as conf:
lines = conf.readlines()
Expand Down
2 changes: 1 addition & 1 deletion usr/lib/python2.7/dist-packages/sdwdate/proxy_settings.py
Expand Up @@ -27,7 +27,7 @@ def proxy_settings():
port_number = '9050'

if os.path.exists('/etc/sdwdate.d/'):
files = sorted(glob.glob('/etc/sdwdate.d/*'))
files = sorted(glob.glob('/etc/sdwdate.d/*.conf'))
for f in files:
with open(f) as conf:
lines = conf.readlines()
Expand Down

0 comments on commit 89de971

Please sign in to comment.