git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
check instance of incomming rspec
[sfa.git]
/
sfa
/
rspecs
/
pg_rspec_converter.py
diff --git
a/sfa/rspecs/pg_rspec_converter.py
b/sfa/rspecs/pg_rspec_converter.py
index
6f47549
..
694ff5a
100755
(executable)
--- a/
sfa/rspecs/pg_rspec_converter.py
+++ b/
sfa/rspecs/pg_rspec_converter.py
@@
-35,7
+35,10
@@
class PGRSpecConverter:
@staticmethod
def to_sfa_rspec(rspec):
- pg_rspec = PGRSpec(rspec=rspec)
+ if isinstance(rspec, PGRSpec):
+ pg_rspec = rspec
+ else:
+ pg_rspec = PGRSpec(rspec=rspec)
sfa_rspec = SfaRSpec()
# get network