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",
|
"server": "unknown",
|
||||||
"sync_status": "UNKNOWN",
|
"sync_status": "UNKNOWN",
|
||||||
"drift_count": 0,
|
"drift_count": 0,
|
||||||
"deployed_files": [],
|
"files": [],
|
||||||
"drifted_files": [],
|
|
||||||
"last_check": ""
|
"last_check": ""
|
||||||
}
|
}
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@ -90,20 +89,8 @@ def api_status():
|
|||||||
type: string
|
type: string
|
||||||
drift_count:
|
drift_count:
|
||||||
type: integer
|
type: integer
|
||||||
deployed_files:
|
files:
|
||||||
type: array
|
type: array
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
name:
|
|
||||||
type: string
|
|
||||||
drifted_files:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
name:
|
|
||||||
type: string
|
|
||||||
last_check:
|
last_check:
|
||||||
type: string
|
type: string
|
||||||
post:
|
post:
|
||||||
@ -126,22 +113,10 @@ def api_status():
|
|||||||
enum: ["SYNCED", "OUT_OF_SYNC", "UNKNOWN", "PROGRESSING"]
|
enum: ["SYNCED", "OUT_OF_SYNC", "UNKNOWN", "PROGRESSING"]
|
||||||
drift_count:
|
drift_count:
|
||||||
type: integer
|
type: integer
|
||||||
deployed_files:
|
files:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
|
||||||
name:
|
|
||||||
type: string
|
|
||||||
example: [{"name": "rsyslog.conf"}]
|
|
||||||
drifted_files:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
name:
|
|
||||||
type: string
|
|
||||||
example: []
|
|
||||||
last_check:
|
last_check:
|
||||||
type: string
|
type: string
|
||||||
responses:
|
responses:
|
||||||
@ -231,8 +206,7 @@ def ready():
|
|||||||
"server": "unknown",
|
"server": "unknown",
|
||||||
"sync_status": "UNKNOWN",
|
"sync_status": "UNKNOWN",
|
||||||
"drift_count": 0,
|
"drift_count": 0,
|
||||||
"deployed_files": [],
|
"files": [],
|
||||||
"drifted_files": [],
|
|
||||||
"last_check": ""
|
"last_check": ""
|
||||||
}
|
}
|
||||||
save_status(default_status)
|
save_status(default_status)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user