Revision b459a848 lib/rapi/rlib2.py
b/lib/rapi/rlib2.py | ||
---|---|---|
51 | 51 |
|
52 | 52 |
""" |
53 | 53 |
|
54 |
# pylint: disable-msg=C0103
|
|
54 |
# pylint: disable=C0103 |
|
55 | 55 |
|
56 | 56 |
# C0103: Invalid name, since the R_* names are not conforming |
57 | 57 |
|
... | ... | |
1005 | 1005 |
except KeyError: |
1006 | 1006 |
pass |
1007 | 1007 |
else: |
1008 |
if not ht.TListOf(ht.TInt)(raw_disks): # pylint: disable-msg=E1102
|
|
1008 |
if not ht.TListOf(ht.TInt)(raw_disks): # pylint: disable=E1102 |
|
1009 | 1009 |
# Backwards compatibility for strings of the format "1, 2, 3" |
1010 | 1010 |
try: |
1011 | 1011 |
data["disks"] = [int(part) for part in raw_disks.split(",")] |
... | ... | |
1368 | 1368 |
Example: ["tag1", "tag2", "tag3"] |
1369 | 1369 |
|
1370 | 1370 |
""" |
1371 |
# pylint: disable-msg=W0212
|
|
1371 |
# pylint: disable=W0212 |
|
1372 | 1372 |
return baserlib._Tags_GET(self.TAG_LEVEL, name=self.name) |
1373 | 1373 |
|
1374 | 1374 |
def PUT(self): |
... | ... | |
1378 | 1378 |
you'll have back a job id. |
1379 | 1379 |
|
1380 | 1380 |
""" |
1381 |
# pylint: disable-msg=W0212
|
|
1381 |
# pylint: disable=W0212 |
|
1382 | 1382 |
if "tag" not in self.queryargs: |
1383 | 1383 |
raise http.HttpBadRequest("Please specify tag(s) to add using the" |
1384 | 1384 |
" the 'tag' parameter") |
... | ... | |
1394 | 1394 |
/tags?tag=[tag]&tag=[tag] |
1395 | 1395 |
|
1396 | 1396 |
""" |
1397 |
# pylint: disable-msg=W0212
|
|
1397 |
# pylint: disable=W0212 |
|
1398 | 1398 |
if "tag" not in self.queryargs: |
1399 | 1399 |
# no we not gonna delete all tags |
1400 | 1400 |
raise http.HttpBadRequest("Cannot delete all tags - please specify" |
Also available in: Unified diff