Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Read source dir in from config file properly and use as default if no…
Browse files Browse the repository at this point in the history
… CLI

or STDIN list provided
  • Loading branch information
mancdaz committed Feb 15, 2011
1 parent e534e2a commit c13580e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cfsync.py
Expand Up @@ -19,6 +19,7 @@ def __init__(self):
self.get('api','username','api_username',True)
self.get('api','key','api_key',True)
self.get('api','url','api_url',True)
self.get('source','source','source_local',True)
self.checkApi()
self.get('destination','container','container_name',True)
#TODO return contianer object ?
Expand All @@ -43,6 +44,7 @@ def __init__(self):
self.config['dir'] = 'to'
except:
# We didn't get any cli options
self.config['local'] = self.config['source_local']
self.config['dir'] = 'to'
if(self.config['gen_verbose'] == True):
print 'Container = ' + self.config['container_name']
Expand Down

0 comments on commit c13580e

Please sign in to comment.