File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ def cli(env, identifier):
2525
2626 end = datetime .date .today ()
2727 start = end .replace (day = 1 )
28- lastMonth = start - datetime .timedelta (days = 30 )
28+ last_month = start - datetime .timedelta (days = 30 )
2929
3030 monitoring = mgr .get_summary (_firewall ['metricTrackingObject' ]['id' ],
31- lastMonth .strftime ('%Y-%m-%d' ), end .strftime ('%Y-%m-%d' ))
31+ last_month .strftime ('%Y-%m-%d' ), end .strftime ('%Y-%m-%d' ))
3232 public_out = 0
3333 public_in = 0
3434 for monitor in monitoring :
@@ -41,7 +41,7 @@ def cli(env, identifier):
4141
4242 table .add_row (['Id' , _firewall .get ('id' )])
4343 table .add_row (['Name' , _firewall ['networkGateway' ]['name' ]])
44- table .add_row (['Stard Date' , lastMonth .strftime ('%Y-%m-%d' )])
44+ table .add_row (['Stard Date' , last_month .strftime ('%Y-%m-%d' )])
4545 table .add_row (['End Date' , end .strftime ('%Y-%m-%d' )])
4646 table .add_row (['Out' , public_out ])
4747 table .add_row (['In' , public_in ])
You can’t perform that action at this time.
0 commit comments