Skip to content
Browse files

Fixed argument parser errors

  • Loading branch information...
1 parent f3c0c12 commit c36a106a33aa7c625660e45ee1facd040f8133a4 Kevin Landreth committed Oct 24, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 slbackup.py
View
6 slbackup.py
@@ -599,14 +599,14 @@ def asblocks(_f, buflen=_DEFAULT_OS_BUFLEN):
args.add_option_group(xargs)
(opts, extra) = args.parse_args()
+ app = Application(opts)
+
if not hasattr(opts, 'source') or not opts.source:
args.error("Missing parameter: --source")
- if not hasattr(opts, 'container') or not opts.source:
+ if not hasattr(opts, 'container') or not opts.container:
args.error("Missing parameter: --container")
- app = Application(opts)
-
logging.config.fileConfig(opts.config)
os.chdir(app.source)
upload_directory(app)

0 comments on commit c36a106

Please sign in to comment.
Something went wrong with that request. Please try again.