Changeset 490
- Timestamp:
- 05/27/08 10:02:34
(8 months ago)
- Author:
- jmowery
- Message:
store agent status for update push checking
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r489 |
r490 |
|
| 95 | 95 | ''' |
|---|
| 96 | 96 | status = sestatus() |
|---|
| | 97 | if status: #sestatus returns boolean True/False, convert to string for users |
|---|
| | 98 | status = 'Enforcing' |
|---|
| | 99 | else: |
|---|
| | 100 | status = 'Permissive' |
|---|
| 97 | 101 | if self.storage.enforcing == status: |
|---|
| 98 | 102 | return None |
|---|
| 99 | | # FIXME: Jeremy: store the status here. |
|---|
| 100 | | # storage.enforcing = status |
|---|
| 101 | | return None |
|---|
| | 103 | self.storage.enforcing = status |
|---|
| | 104 | self.storage.update() |
|---|
| 102 | 105 | return protocol.Message("status", "update", status) |
|---|
| 103 | 106 | |
|---|
Download in other formats:
* Generating other formats may take time.