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
Show 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):
...
@@ -83,8 +83,8 @@ class SerialLineReceiver(SerialLineReceiverBase):
"uptime"
:
{
"seconds"
:
uptime
.
uptime
()},
"uptime"
:
{
"seconds"
:
uptime
.
uptime
()},
"disk"
:
disk_usage
,
"disk"
:
disk_usage
,
"user"
:
{
"count"
:
len
(
psutil
.
get_users
())}}
"user"
:
{
"count"
:
len
(
psutil
.
get_users
())}}
self
.
send_response
(
response
=
'status'
,
self
.
send_response
(
response
=
'status'
,
args
=
args
)
args
=
args
)
logger
.
debug
(
"send_status finished"
)
def
_check_args
(
self
,
func
,
args
):
def
_check_args
(
self
,
func
,
args
):
if
not
isinstance
(
args
,
dict
):
if
not
isinstance
(
args
,
dict
):
...
@@ -122,6 +122,7 @@ class SerialLineReceiver(SerialLineReceiverBase):
...
@@ -122,6 +122,7 @@ class SerialLineReceiver(SerialLineReceiverBase):
self
.
_pretty_fun
(
func
))
self
.
_pretty_fun
(
func
))
self
.
_check_args
(
func
,
args
)
self
.
_check_args
(
func
,
args
)
logger
.
debug
(
"_get_command finished"
)
return
func
return
func
@staticmethod
@staticmethod
...
...
bootstrap-freebsd.sh
View file @
33dccfbd
...
@@ -11,8 +11,6 @@ then
...
@@ -11,8 +11,6 @@ then
pw group mod wheel
-m
cloud
pw group mod wheel
-m
cloud
fi
fi
exit
if
[
!
-d
/usr/ports
]
if
[
!
-d
/usr/ports
]
then
then
git clone https://github.com/HardenedBSD/freebsd-ports.git /usr/ports
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