def snapshot_running(client):
 try:
  status = client.snapshot.status()['snapshots']
 except Exception as e:
  report_failure(e)
 return (False if (status == []) else True)

def snapshot_running ( client ) : try : status = client . snapshot . status ( ) [ 'snapshots' ] except Exception as e : report_failure ( e ) return ( False if ( status == [ ] ) else True )
return true if a snapshot is in progress .