Skip to content

Commit

Permalink
fix: use dir() for target
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed May 12, 2024
1 parent 40588c9 commit ee2318d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gvm_sync_targets/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ def gvm_sync_targets(username: str, password: str) -> None:
with Gmp(UnixSocketConnection()) as gmp:
gmp.authenticate(username, password)
for target in gmp.get_targets():
print(target, type(target), vars(target))
print(target)
print(type(target))
for k in dir(target):
print(k, getattr(target, k))

0 comments on commit ee2318d

Please sign in to comment.