typo in master_daemon
authorYaroslav Brustinov <[email protected]>
Sat, 6 Aug 2016 17:45:53 +0000 (20:45 +0300)
committerYaroslav Brustinov <[email protected]>
Sat, 6 Aug 2016 17:45:53 +0000 (20:45 +0300)
scripts/master_daemon.py

index e4042e1..dd4d805 100755 (executable)
@@ -53,7 +53,7 @@ def update_trex(package_path = 'http://trex-tgn.cisco.com/trex/release/latest'):
     if not len(unpacked_dirs) or len(unpacked_dirs) > 1:
         raise Exception('Should be exactly one unpacked directory, got: %s' % unpacked_dirs)
     cur_dir = args.trex_dir
-    if os.path.islink(cur_dir) or os.path.isfile(cur_dir)):
+    if os.path.islink(cur_dir) or os.path.isfile(cur_dir):
         os.unlink(cur_dir)
     if not os.path.exists(cur_dir):
         os.makedirs(cur_dir)