basic support for the hdfs dfs <command> when the command misses the dash

This commit is contained in:
Michael Lee
2015-08-13 13:09:19 +01:00
parent 0ad70a1edc
commit b494c4e273
3 changed files with 41 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
def match(command, settings):
return ('hdfs dfs' in command.script
and "this command begins with a dash." in command.stderr.lower())
def get_new_command(command, settings):
data = command.script.split()
data[2] = '-' + data[2]
return ' '.join(data)