diff options
author | 2020-06-17 14:54:56 +0200 | |
---|---|---|
committer | 2020-06-17 16:12:00 +0200 | |
commit | d35d3b8c0ca5784e0ffd7cebad0fa68631f767ab (patch) | |
tree | 3ea92ee01fa17ac28439a99b30f4b2fdcac6cc4d /test/mocks/mass-pnf-sim/mass-pnf-sim.py | |
parent | 90d6d7ff2abc2047d1b95fab651647d9f5ce4d9c (diff) |
Pass options to each lifecycle method separately
This makes the MassPnfSim object instance stateless.
Change-Id: Ic8f7aefa0afb74a15491b5b0e8ba1cb80e3aa3ef
Issue-ID: INT-1629
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'test/mocks/mass-pnf-sim/mass-pnf-sim.py')
-rwxr-xr-x | test/mocks/mass-pnf-sim/mass-pnf-sim.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mocks/mass-pnf-sim/mass-pnf-sim.py b/test/mocks/mass-pnf-sim/mass-pnf-sim.py index fe6062637..ce8cd73a6 100755 --- a/test/mocks/mass-pnf-sim/mass-pnf-sim.py +++ b/test/mocks/mass-pnf-sim/mass-pnf-sim.py @@ -18,7 +18,7 @@ if __name__ == '__main__': MassPnfSim.log_lvl = log_lvl if args.subcommand is not None: - sim_routine = getattr(MassPnfSim(args), args.subcommand) - sim_routine() + sim_routine = getattr(MassPnfSim(), args.subcommand) + sim_routine(args) else: parser.print_usage() |