Skip to content

Commit

Permalink
add conditional exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
clbu committed Dec 11, 2024
1 parent ed6946e commit 3315211
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions netbox_agent/cli.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
from packaging import version
import netbox_agent.dmidecode as dmidecode
from netbox_agent.config import config
Expand Down Expand Up @@ -47,8 +48,8 @@ def run(config):


def main():
return 0 if run(config) else 1
return run(config)


if __name__ == '__main__':
main()
sys.exit(main())

0 comments on commit 3315211

Please sign in to comment.