Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
agent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
7
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
33dccfbd
authored
Dec 16, 2014
by
Oliver Pinter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unneeded exit and added debug log
parent
85702c7d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
agent.py
+3
-2
bootstrap-freebsd.sh
+0
-2
No files found.
agent.py
View file @
33dccfbd
...
...
@@ -83,8 +83,8 @@ class SerialLineReceiver(SerialLineReceiverBase):
"uptime"
:
{
"seconds"
:
uptime
.
uptime
()},
"disk"
:
disk_usage
,
"user"
:
{
"count"
:
len
(
psutil
.
get_users
())}}
self
.
send_response
(
response
=
'status'
,
args
=
args
)
self
.
send_response
(
response
=
'status'
,
args
=
args
)
logger
.
debug
(
"send_status finished"
)
def
_check_args
(
self
,
func
,
args
):
if
not
isinstance
(
args
,
dict
):
...
...
@@ -122,6 +122,7 @@ class SerialLineReceiver(SerialLineReceiverBase):
self
.
_pretty_fun
(
func
))
self
.
_check_args
(
func
,
args
)
logger
.
debug
(
"_get_command finished"
)
return
func
@staticmethod
...
...
bootstrap-freebsd.sh
View file @
33dccfbd
...
...
@@ -11,8 +11,6 @@ then
pw group mod wheel
-m
cloud
fi
exit
if
[
!
-d
/usr/ports
]
then
git clone https://github.com/HardenedBSD/freebsd-ports.git /usr/ports
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment