OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2015 The Swarming Authors. All rights reserved. | 2 # Copyright 2015 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed by the Apache v2.0 license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Prints out attributes as generated by ../swarming_bot/api/os_utilities.py. | 6 """Prints out attributes as generated by ../swarming_bot/api/os_utilities.py. |
7 """ | 7 """ |
8 | 8 |
9 import json | 9 import json |
10 import os | 10 import os |
11 import sys | 11 import sys |
12 | 12 |
(...skipping 28 matching lines...) Expand all Loading... |
41 u'state': os_utilities.get_state(), | 41 u'state': os_utilities.get_state(), |
42 } | 42 } |
43 | 43 |
44 json.dump(data, sys.stdout, indent=2, sort_keys=True, separators=(',', ': ')) | 44 json.dump(data, sys.stdout, indent=2, sort_keys=True, separators=(',', ': ')) |
45 print('') | 45 print('') |
46 return 0 | 46 return 0 |
47 | 47 |
48 | 48 |
49 if __name__ == '__main__': | 49 if __name__ == '__main__': |
50 sys.exit(main()) | 50 sys.exit(main()) |
OLD | NEW |