Compare commits
No commits in common. "master" and "1.0.0" have entirely different histories.
34
app.py
34
app.py
@ -40,8 +40,7 @@ def load_status():
|
||||
"server": "unknown",
|
||||
"sync_status": "UNKNOWN",
|
||||
"drift_count": 0,
|
||||
"deployed_files": [],
|
||||
"drifted_files": [],
|
||||
"files": [],
|
||||
"last_check": ""
|
||||
}
|
||||
except Exception as e:
|
||||
@ -90,20 +89,8 @@ def api_status():
|
||||
type: string
|
||||
drift_count:
|
||||
type: integer
|
||||
deployed_files:
|
||||
files:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
drifted_files:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
last_check:
|
||||
type: string
|
||||
post:
|
||||
@ -126,22 +113,10 @@ def api_status():
|
||||
enum: ["SYNCED", "OUT_OF_SYNC", "UNKNOWN", "PROGRESSING"]
|
||||
drift_count:
|
||||
type: integer
|
||||
deployed_files:
|
||||
files:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
example: [{"name": "rsyslog.conf"}]
|
||||
drifted_files:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
example: []
|
||||
last_check:
|
||||
type: string
|
||||
responses:
|
||||
@ -231,8 +206,7 @@ def ready():
|
||||
"server": "unknown",
|
||||
"sync_status": "UNKNOWN",
|
||||
"drift_count": 0,
|
||||
"deployed_files": [],
|
||||
"drifted_files": [],
|
||||
"files": [],
|
||||
"last_check": ""
|
||||
}
|
||||
save_status(default_status)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user